From fdf9437d7ccee80adcb99a138a3a0ed104819821 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 31 Aug 2024 16:36:01 -0500 Subject: [PATCH] Prevent removal of old minecarts --- mods/ENTITIES/mcl_minecarts/carts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_minecarts/carts.lua b/mods/ENTITIES/mcl_minecarts/carts.lua index c59bf6755..d730078f7 100644 --- a/mods/ENTITIES/mcl_minecarts/carts.lua +++ b/mods/ENTITIES/mcl_minecarts/carts.lua @@ -222,7 +222,7 @@ function DEFAULT_CART_DEF:on_step(dtime) end -- Remove superceded entities - if self._seq ~= staticdata.seq then + if staticdata.seq and self._seq < staticdata.seq then --print("removing cart #"..staticdata.uuid.." with sequence number mismatch") self.object:remove() return