diff options
-rw-r--r-- | trackplacer.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trackplacer.lua b/trackplacer.lua index 68c1c7c..b1e57a5 100644 --- a/trackplacer.lua +++ b/trackplacer.lua @@ -122,7 +122,9 @@ function advtrains.register_track_placer(nnprefix, imgprefix, dispname) local pos=pointed_thing.above if minetest.registered_nodes[minetest.get_node(pos).name] and minetest.registered_nodes[minetest.get_node(pos).name].buildable_to then advtrains.placetrack(pos, nnprefix) - itemstack:take_item() + if not minetest.setting_getbool("creative_mode") then + itemstack:take_item() + end end end return itemstack @@ -197,4 +199,4 @@ minetest.register_craftitem("advtrains:trackworker",{ end end end, -})
\ No newline at end of file +}) |