mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Fixed #11366
This commit is contained in:
parent
11542f8e17
commit
e8fc33ca9e
3 changed files with 3 additions and 0 deletions
|
|
@ -334,6 +334,7 @@ public abstract class SaveVersion extends SaveFileReader{
|
|||
//set block only if this is the center; otherwise, it's handled elsewhere
|
||||
if(isCenter){
|
||||
tile.setBlock(block);
|
||||
if(tile.build != null) tile.build.enabled = true;
|
||||
}
|
||||
|
||||
//must be assigned after setBlock, because that can reset data
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ public abstract class LegacySaveVersion extends LegacyRegionSaveVersion{
|
|||
//do not override occupied cells
|
||||
if(!occupied){
|
||||
tile.setBlock(block);
|
||||
if(tile.build != null) tile.build.enabled = true;
|
||||
}
|
||||
|
||||
if(block.hasBuilding()){
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ public class ShortChunkSaveVersion extends SaveVersion{
|
|||
//set block only if this is the center; otherwise, it's handled elsewhere
|
||||
if(isCenter){
|
||||
tile.setBlock(block);
|
||||
if(tile.build != null) tile.build.enabled = true;
|
||||
}
|
||||
|
||||
//must be assigned after setBlock, because that can reset data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue