From ae9458aa45d2cac029820b894cbf7b74628c1933 Mon Sep 17 00:00:00 2001 From: Niklp09 <89982526+Niklp09@users.noreply.github.com> Date: Sat, 23 Sep 2023 21:54:10 +0200 Subject: [PATCH] Use proper player creative check --- iron_age/gravelsieve.lua | 2 +- sounds/techage_valve.ogg | Bin 7074 -> 6871 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/iron_age/gravelsieve.lua b/iron_age/gravelsieve.lua index 94aadf5..3bec992 100644 --- a/iron_age/gravelsieve.lua +++ b/iron_age/gravelsieve.lua @@ -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 diff --git a/sounds/techage_valve.ogg b/sounds/techage_valve.ogg index 7530c0d8c89d8758ba2c72c2e0c89805c21e9689..c293fbf61a72d74543795de12c2deb9af19c5608 100644 GIT binary patch literal 6871 zcmcgvc|6qLyZ?;DSVEGJWz^7&BqL;$Vw7b{F(ge0L-xpMwM1wcOVb##3|VHZjcjA7 zuTnAA>|01$7_ww*@ol?jbicp5yzcA1?qB!3&YXEZpXZ$SdA9RB=X2cC(-snd{=Mz4 zgX!~0lF~&}m@@2QK#-d^ng0T|&7S`ULCP6_{tIEp`78g`_$y)H=@R8DO5)J(|I`}S z{ejU1TnFz!FRkN2o(Mm0H~Tekge5{pTSr@aueL4%MeuOHK=MB4i8y@jqIXchIe(9H z!D#*#u=Rg1w&6_eVURHd$>F3l*0V_ohRvH*60?)x)uZSvX> z$A@2|&S7}6k-jXI4}ncXeOOtfzC^D zqoA7<$?cdXM3lJBR950K!xkp(m|-h2H-X@b=E&F{Et`-fu{i?_@iHO3w4n%;!71sECqR zSXAVbmgoJycY$oxVh9p}Af=}Bist7Po6hsKTC*@>9fW`&Qyay@L7Gi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