mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Disable item magnet correctly
This commit is contained in:
parent
817def7d81
commit
8cad041c89
@ -142,7 +142,7 @@ minetest.register_globalstep(function(dtime)
|
||||
if not collected then
|
||||
if object:get_luaentity()._magnet_timer > 1 then
|
||||
object:get_luaentity()._magnet_timer = -item_drop_settings.magnet_time
|
||||
enable_physics(object, object:get_luaentity())
|
||||
object:get_luaentity()._magnet_active = false
|
||||
elseif object:get_luaentity()._magnet_timer < 0 then
|
||||
object:get_luaentity()._magnet_timer = object:get_luaentity()._magnet_timer + dtime
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user