From 69c7b84ddaf6beb159e06e6366a7b5e8c542f86b Mon Sep 17 00:00:00 2001 From: cheapie Date: Wed, 15 Apr 2020 15:17:21 -0500 Subject: Remove the ability to teleport carts with the digilines rails --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3