diff options
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/crafting.lua | 36 | ||||
-rw-r--r-- | advtrains/wagons.lua | 6 |
2 files changed, 4 insertions, 38 deletions
diff --git a/advtrains/crafting.lua b/advtrains/crafting.lua index d7e7343..cb0813c 100644 --- a/advtrains/crafting.lua +++ b/advtrains/crafting.lua @@ -2,41 +2,7 @@ --crafting.lua --registers crafting recipes ---tracks -minetest.register_craft({ - output = 'advtrains:dtrack_placer 50', - recipe = { - {'default:steel_ingot', 'group:stick', 'default:steel_ingot'}, - {'default:steel_ingot', 'group:stick', 'default:steel_ingot'}, - {'default:steel_ingot', 'group:stick', 'default:steel_ingot'}, - }, -}) -minetest.register_craft({ - type = "shapeless", - output = 'advtrains:dtrack_slopeplacer 2', - recipe = { - "advtrains:dtrack_placer", - "advtrains:dtrack_placer", - "default:gravel", - }, -}) - -minetest.register_craft({ - output = 'advtrains:dtrack_bumper_placer 2', - recipe = { - {'group:wood', 'dye:red'}, - {'default:steel_ingot', 'default:steel_ingot'}, - {'advtrains:dtrack_placer', 'advtrains:dtrack_placer'}, - }, -}) -minetest.register_craft({ - type="shapeless", - output = 'advtrains:dtrack_detector_off_placer', - recipe = { - "advtrains:dtrack_placer", - "mesecons:wire_00000000_off" - }, -}) +--tracks: see advtrains_train_track --signals minetest.register_craft({ output = 'advtrains:retrosignal_off 2', diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 28a471a..ba746ef 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -486,10 +486,10 @@ function wagon:on_step(dtime) -- unload entity if out of range (because relevant pr won't be merged in engine)
-- This is a WORKAROUND!
- local outofrange = false
+ local outofrange = true
for _,p in pairs(minetest.get_connected_players()) do
- if vector.distance(p:get_pos(),pos)>=unload_wgn_range then
- outofrange = true
+ if vector.distance(p:get_pos(),pos)<=unload_wgn_range then
+ outofrange = false
end
end
if outofrange then
|