Method renaming for consistency

This commit is contained in:
Anuken
2020-09-28 18:32:39 -04:00
parent 6a45a965c0
commit a5b1239c2b
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ public class EditorTile extends Tile{
Block block = block(); Block block = block();
if(block.hasEntity()){ if(block.hasBuilding()){
build = entityprov.get().init(this, team, false, rotation); build = entityprov.get().init(this, team, false, rotation);
build.cons = new ConsumeModule(build); build.cons = new ConsumeModule(build);
if(block.hasItems) build.items = new ItemModule(); if(block.hasItems) build.items = new ItemModule();
+1 -1
View File
@@ -257,7 +257,7 @@ public abstract class SaveVersion extends SaveFileReader{
if(hadEntity){ if(hadEntity){
if(isCenter){ //only read entity for center blocks if(isCenter){ //only read entity for center blocks
if(block.hasEntity()){ if(block.hasBuilding()){
try{ try{
readChunk(stream, true, in -> { readChunk(stream, true, in -> {
byte revision = in.readByte(); byte revision = in.readByte();
@@ -61,7 +61,7 @@ public abstract class LegacySaveVersion extends SaveVersion{
tile.setBlock(block); tile.setBlock(block);
} }
if(block.hasEntity()){ if(block.hasBuilding()){
try{ try{
readChunk(stream, true, in -> { readChunk(stream, true, in -> {
byte version = in.readByte(); byte version = in.readByte();
+1 -1
View File
@@ -499,7 +499,7 @@ public class Block extends UnlockableContent{
return variantRegions; return variantRegions;
} }
public boolean hasEntity(){ public boolean hasBuilding(){
return destructible || update; return destructible || update;
} }
+1 -1
View File
@@ -26,7 +26,7 @@ public class CachedTile extends Tile{
Block block = block(); Block block = block();
if(block.hasEntity()){ if(block.hasBuilding()){
Building n = entityprov.get(); Building n = entityprov.get();
n.cons(new ConsumeModule(build)); n.cons(new ConsumeModule(build));
n.tile(this); n.tile(this);
+1 -1
View File
@@ -508,7 +508,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{
} }
} }
if(block.hasEntity()){ if(block.hasBuilding()){
build = entityprov.get().init(this, team, block.update && !state.isEditor(), rotation); build = entityprov.get().init(this, team, block.update && !state.isEditor(), rotation);
} }
} }