Prevent removal of old minecarts

This commit is contained in:
teknomunk 2024-08-31 16:36:01 -05:00
parent 8463f58bc5
commit 80191cbbe2
1 changed files with 1 additions and 1 deletions

View File

@ -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