diff options
author | cheapie <no-email-for-you@example.com> | 2020-04-15 15:17:21 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2020-04-15 15:17:21 -0500 |
commit | 69c7b84ddaf6beb159e06e6366a7b5e8c542f86b (patch) | |
tree | 2ff25f32b107d1d7819519925d411b9afd1a0978 | |
parent | 28e7bab590448b17194f6923052595b56afcc4a9 (diff) | |
download | mesecons_carts-69c7b84ddaf6beb159e06e6366a7b5e8c542f86b.tar mesecons_carts-69c7b84ddaf6beb159e06e6366a7b5e8c542f86b.tar.gz mesecons_carts-69c7b84ddaf6beb159e06e6366a7b5e8c542f86b.tar.bz2 mesecons_carts-69c7b84ddaf6beb159e06e6366a7b5e8c542f86b.tar.xz mesecons_carts-69c7b84ddaf6beb159e06e6366a7b5e8c542f86b.zip |
Remove the ability to teleport carts with the digilines rails
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -258,7 +258,7 @@ local function restart_cart(pos) local velocity = minetest.deserialize(velocity_serial) local cartpos = minetest.deserialize(cartpos_serial) if not (type(velocity) == "table" and type(cartpos) == "table") then return end - local possible_carts = minetest.get_objects_inside_radius(cartpos,1) + local possible_carts = minetest.get_objects_inside_radius(cartpos,0.5) for _,object in pairs(possible_carts) do local cart = object:get_luaentity() if cart and cart.name == "carts:cart" then |