forked from Mineclonia/Mineclonia
Fix mob creative mode weapon wear thingy
This commit is contained in:
parent
ce2abd0f83
commit
5e609235bf
|
@ -1879,7 +1879,7 @@ end
|
||||||
punch_interval = tool_capabilities.full_punch_interval or 1.4
|
punch_interval = tool_capabilities.full_punch_interval or 1.4
|
||||||
end
|
end
|
||||||
|
|
||||||
if minetest.setting_getbool("creative_mode")
|
if (not minetest.setting_getbool("creative_mode"))
|
||||||
and weapon:get_definition()
|
and weapon:get_definition()
|
||||||
and weapon:get_definition().tool_capabilities then
|
and weapon:get_definition().tool_capabilities then
|
||||||
weapon:add_wear(floor((punch_interval / 75) * 9000))
|
weapon:add_wear(floor((punch_interval / 75) * 9000))
|
||||||
|
|
Loading…
Reference in New Issue