1
0
mirror of https://github.com/HybridDog/builtin_item.git synced 2024-12-23 01:10:26 +01:00

Support Minetest 5.3.0-dev

The on_step now has a moveresult parameter
This commit is contained in:
HybridDog 2020-05-09 17:42:51 +02:00
parent aa1b3a7142
commit e6dfd9dce8

View File

@ -89,8 +89,8 @@ local old_on_step = item_entity.on_step or function()end
item_entity.makes_footstep_sound = true item_entity.makes_footstep_sound = true
item_entity.bt_timer = 0 item_entity.bt_timer = 0
item_entity.on_step = function(self, dtime) item_entity.on_step = function(self, dtime, ...)
old_on_step(self, dtime) old_on_step(self, dtime, ...)
if self.bt_acc if self.bt_acc
and not vector.equals(self.object:getacceleration(), self.bt_acc) then and not vector.equals(self.object:getacceleration(), self.bt_acc) then