jumpdrmive: move animals while jump

This commit is contained in:
Peter Kosyh 2019-11-30 13:43:56 +03:00
parent 7cd14be9ee
commit 3f059d065e

View File

@ -22,7 +22,9 @@ jumpdrive.move_objects = function(source_center, source_pos1, source_pos2, delta
if not entity then
minetest.log("action", "[jumpdrive] moving object")
obj:set_pos( vector.add(objPos, delta_vector) )
elseif entity.name:find("^mobs_animal:") then
minetest.log("action", "[jumpdrive] moving animal")
obj:set_pos( vector.add(objPos, delta_vector) )
elseif entity.name == "__builtin:item" then
minetest.log("action", "[jumpdrive] moving dropped item")
obj:set_pos( vector.add(objPos, delta_vector) )