mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 23:24:00 +07:00
Update SaveVersion.java (#10192)
some mods can use tile.data for some extra use for terrain
This commit is contained in:
parent
b5ad4e01ae
commit
e4283a3064
@ -232,7 +232,8 @@ public abstract class SaveVersion extends SaveFileReader{
|
||||
Tile tile = world.rawTile(i % world.width(), i / world.width());
|
||||
stream.writeShort(tile.blockID());
|
||||
|
||||
boolean savedata = tile.block().saveData;
|
||||
boolean savedata = tile.floor().saveData || tile.overlay().saveData || tile.block().saveData;
|
||||
|
||||
byte packed = (byte)((tile.build != null ? 1 : 0) | (savedata ? 2 : 0));
|
||||
|
||||
//make note of whether there was an entity/rotation here
|
||||
|
Loading…
Reference in New Issue
Block a user