Use proper player creative check

This commit is contained in:
Niklp09 2023-09-23 21:54:10 +02:00
parent bc6697a8cc
commit ae9458aa45
2 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ local function on_punch(pos, node, puncher, pointed_thing)
minetest.swap_node(pos, {name = "techage:sieve0"})
minetest.get_node_timer(pos):start(1.5)
local w = puncher:get_wielded_item()
if not(minetest.setting_getbool("creative_mode")) then
if not minetest.is_creative_enabled(puncher:get_player_name()) then
w:take_item(1)
puncher:set_wielded_item(w)
end

Binary file not shown.