summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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