From bd97071dc6e67f75d7fab233500cd51c9796da24 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 21 Feb 2016 12:31:33 +0100 Subject: [PATCH] :cat2: --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index d6eb8bb..2eca367 100644 --- a/init.lua +++ b/init.lua @@ -104,9 +104,16 @@ local item_entity = minetest.registered_entities["__builtin:item"] local old_on_step = item_entity.on_step or function()end item_entity.makes_footstep_sound = true +item_entity.bt_timer = 0 item_entity.on_step = function(self, dtime) old_on_step(self, dtime) + self.bt_timer = self.bt_timer+dtime + if self.bt_timer < 1 then + return + end + self.bt_timer = 0 + local p = self.object:getpos() local name = minetest.get_node(p).name