Remove spam punch checks, was causing no drops
This commit is contained in:
parent
80d159ed73
commit
d9bf53b1e5
8
api.lua
8
api.lua
@ -1,4 +1,4 @@
|
|||||||
-- Mobs Api (28th December 2015)
|
-- Mobs Api (31st December 2015)
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
|
|
||||||
@ -1668,10 +1668,8 @@ minetest.register_entity(name, {
|
|||||||
|
|
||||||
on_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
on_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||||
|
|
||||||
-- no punch punch spamming
|
-- no punch spamming
|
||||||
if tflp < 0.45 then
|
-- if tflp < 0.45 then return end
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
-- weapon wear
|
-- weapon wear
|
||||||
local weapon = hitter:get_wielded_item()
|
local weapon = hitter:get_wielded_item()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user