Fix redundant minetest.after invocations

This commit is contained in:
Hybrid Dog 2017-09-08 20:43:30 +02:00
parent c86bc605bd
commit b06129c3a3

@ -142,12 +142,15 @@ if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false then
vector.subtract(pos, pos2), 3) vector.subtract(pos, pos2), 3)
vel.y = vel.y + 0.6 vel.y = vel.y + 0.6
object:setvelocity(vel) object:setvelocity(vel)
if ent.physical_state then
ent.physical_state = false ent.physical_state = false
ent.object:set_properties({ ent.object:set_properties({
physical = false physical = false
}) })
minetest.after(magnet_time, afterflight, object, inv) minetest.after(magnet_time, afterflight,
object, inv)
end
end end
end end
end end