mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Fix redundant minetest.after invocations
This commit is contained in:
parent
c86bc605bd
commit
b06129c3a3
13
init.lua
13
init.lua
@ -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)
|
||||||
ent.physical_state = false
|
if ent.physical_state then
|
||||||
ent.object:set_properties({
|
ent.physical_state = false
|
||||||
physical = false
|
ent.object:set_properties({
|
||||||
})
|
physical = false
|
||||||
|
})
|
||||||
|
|
||||||
minetest.after(magnet_time, afterflight, object, inv)
|
minetest.after(magnet_time, afterflight,
|
||||||
|
object, inv)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user