1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-17 07:10:29 +02:00

Use proper creative mode check (#59)

This commit is contained in:
Niklp
2023-09-23 19:18:18 +02:00
committed by GitHub
parent 6a3c47157f
commit 72572bb5c8
6 changed files with 4 additions and 5 deletions

View File

@ -64,7 +64,7 @@ minetest.register_node("dryplants:juncus", {
else
minetest.swap_node(right_here, {name="dryplants:juncus"})
end
if not minetest.setting_getbool("creative_mode") then
if not minetest.is_creative_enabled(playername) then
itemstack:take_item()
end
return itemstack