diff --git a/advtrains.zip b/advtrains.zip index 318fd14..6640cfc 100644 Binary files a/advtrains.zip and b/advtrains.zip differ diff --git a/tracks.lua b/tracks.lua index 617266a..bff88d3 100644 --- a/tracks.lua +++ b/tracks.lua @@ -505,12 +505,14 @@ function sl.create_slopeplacer_on_place(def, preset) if not minetest.registered_nodes[node.name] or not minetest.registered_nodes[node.name].buildable_to or minetest.is_protected(pos, player:get_player_name()) then --do slopes of this distance exist? if lookup[step] then - if istack:get_count()>=step then + if minetest.setting_getbool("creative_mode") or istack:get_count()>=step then --start placing local placenodes=lookup[step] while step>0 do minetest.set_node(pos, {name=def.nodename_prefix.."_"..placenodes[step], param2=param2}) - istack:take_item() + if not minetest.setting_getbool("creative_mode") then + istack:take_item() + end step=step-1 pos=vector.subtract(pos, dirvec) end