1
0
Fork 0

Merge pull request 'Fix wrong argument to is_creative_enabled' (#2237) from fix_wtong_is_creative_usage into master

Reviewed-on: MineClone2/MineClone2#2237
This commit is contained in:
cora 2022-05-25 03:42:12 +00:00
commit e2fc41cf51
1 changed files with 1 additions and 1 deletions

View File

@ -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
-- after_use was registered.
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)
end