Prevent removal of old minecarts
This commit is contained in:
parent
11ce4ad18f
commit
8780c8fca6
|
@ -222,7 +222,7 @@ function DEFAULT_CART_DEF:on_step(dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Remove superceded entities
|
-- 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")
|
--print("removing cart #"..staticdata.uuid.." with sequence number mismatch")
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue