mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix wrong argument to is_creative_enabled
This commit is contained in:
parent
efbf3d9750
commit
6a2f9e1a16
@ -252,7 +252,7 @@ local function get_after_use_callback(itemdef)
|
|||||||
-- If the tool does not have after_use, add wear to the tool as if no
|
-- If the tool does not have after_use, add wear to the tool as if no
|
||||||
-- after_use was registered.
|
-- after_use was registered.
|
||||||
return function(itemstack, user, node, digparams)
|
return function(itemstack, user, node, digparams)
|
||||||
if not minetest.is_creative_enabled(user) then
|
if not minetest.is_creative_enabled(user:get_player_name()) then
|
||||||
itemstack:add_wear(digparams.wear)
|
itemstack:add_wear(digparams.wear)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user