mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-07 17:17:31 +01:00
Prevent removal of old minecarts
This commit is contained in:
parent
b963936c6d
commit
8cde9d4244
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user