Unlimited rails in creative mode

h137
Andrey K 2016-06-09 23:06:39 +04:00
parent 40f3f2eb5d
commit f7cf9d773c
1 changed files with 4 additions and 2 deletions

View File

@ -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,
})
})