Merge pull request #146 from Niklp09/creative_check

Use proper player creative check
This commit is contained in:
Joachim Stolberg 2023-09-24 10:01:11 +02:00 committed by GitHub
commit 5b94e40243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.swap_node(pos, {name = "techage:sieve0"})
minetest.get_node_timer(pos):start(1.5) minetest.get_node_timer(pos):start(1.5)
local w = puncher:get_wielded_item() 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) w:take_item(1)
puncher:set_wielded_item(w) puncher:set_wielded_item(w)
end end

Binary file not shown.