summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-15 15:17:21 -0500
committercheapie <no-email-for-you@example.com>2020-04-15 15:17:21 -0500
commit69c7b84ddaf6beb159e06e6366a7b5e8c542f86b (patch)
tree2ff25f32b107d1d7819519925d411b9afd1a0978
parent28e7bab590448b17194f6923052595b56afcc4a9 (diff)
downloadmesecons_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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 336b50f..1e4298c 100644
--- a/init.lua
+++ b/init.lua
@@ -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