Fixed #11366
This commit is contained in:
@@ -334,6 +334,7 @@ public abstract class SaveVersion extends SaveFileReader{
|
|||||||
//set block only if this is the center; otherwise, it's handled elsewhere
|
//set block only if this is the center; otherwise, it's handled elsewhere
|
||||||
if(isCenter){
|
if(isCenter){
|
||||||
tile.setBlock(block);
|
tile.setBlock(block);
|
||||||
|
if(tile.build != null) tile.build.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//must be assigned after setBlock, because that can reset data
|
//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
|
//do not override occupied cells
|
||||||
if(!occupied){
|
if(!occupied){
|
||||||
tile.setBlock(block);
|
tile.setBlock(block);
|
||||||
|
if(tile.build != null) tile.build.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(block.hasBuilding()){
|
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
|
//set block only if this is the center; otherwise, it's handled elsewhere
|
||||||
if(isCenter){
|
if(isCenter){
|
||||||
tile.setBlock(block);
|
tile.setBlock(block);
|
||||||
|
if(tile.build != null) tile.build.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//must be assigned after setBlock, because that can reset data
|
//must be assigned after setBlock, because that can reset data
|
||||||
|
|||||||
Reference in New Issue
Block a user