mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue