From 5e609235bf26e9d125ffd8e2f5a9d8fb367fb4dc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Feb 2017 16:14:23 +0100 Subject: [PATCH] Fix mob creative mode weapon wear thingy --- mods/mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 0dc56dda3..d86d3f88b 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -1879,7 +1879,7 @@ end punch_interval = tool_capabilities.full_punch_interval or 1.4 end - if minetest.setting_getbool("creative_mode") + if (not minetest.setting_getbool("creative_mode")) and weapon:get_definition() and weapon:get_definition().tool_capabilities then weapon:add_wear(floor((punch_interval / 75) * 9000))