mirror of
https://github.com/HybridDog/builtin_item.git
synced 2024-12-22 17:00:27 +01:00
Support Minetest 5.3.0-dev
The on_step now has a moveresult parameter
This commit is contained in:
parent
aa1b3a7142
commit
e6dfd9dce8
4
init.lua
4
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user