diff --git a/mods/ENTITIES/mcl_minecarts/functions.lua b/mods/ENTITIES/mcl_minecarts/functions.lua index d1099c6fd..026f1ffc9 100644 --- a/mods/ENTITIES/mcl_minecarts/functions.lua +++ b/mods/ENTITIES/mcl_minecarts/functions.lua @@ -504,6 +504,10 @@ function mod.get_cart_position(cart_staticdata) end function mod.reverse_cart_direction(staticdata) + if staticdata.distance == 0 then + staticdata.dir = -staticdata.dir + return + end -- Complete moving thru this block into the next, reverse direction, and put us back at the same position we were at local next_dir = -staticdata.dir