mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Fix mob creative mode weapon wear thingy
This commit is contained in:
parent
ce2abd0f83
commit
5e609235bf
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue