1
0
Fork 0

Fix mob creative mode weapon wear thingy

This commit is contained in:
Wuzzy 2017-02-01 16:14:23 +01:00
parent ce2abd0f83
commit 5e609235bf
1 changed files with 1 additions and 1 deletions

View File

@ -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))