fix mt-5.4 compatibility

Closes #7
This commit is contained in:
Alexander Weber 2020-12-03 20:29:56 +01:00
parent 4376b55a2f
commit 60b31d3066

View File

@ -115,8 +115,8 @@ end)
-- https://github.com/minetest/minetest/issues/6909
local builtin_item = minetest.registered_entities["__builtin:item"]
local item = {
on_step = function(self, dtime, moveresult)
builtin_item.on_step(self, dtime, moveresult)
on_step = function(self, dtime, ...)
builtin_item.on_step(self, dtime, ...)
self.shining_timer = (self.shining_timer or 0) + dtime
if self.shining_timer >= update_interval then