remove client world no chunks check, misc
This commit is contained in:
parent
31dd9d6303
commit
e6d16405c5
3 changed files with 1 additions and 7 deletions
|
@ -1009,7 +1009,7 @@ public class Client implements IThreadListener {
|
||||||
}
|
}
|
||||||
if(this.open != null)
|
if(this.open != null)
|
||||||
this.open.render();
|
this.open.render();
|
||||||
else if(this.world == null || this.world.hasNoChunks() || this.charEditor)
|
else if(this.world == null || this.charEditor)
|
||||||
Drawing.drawScaled(this, Gui.DIRT_BACKGROUND);
|
Drawing.drawScaled(this, Gui.DIRT_BACKGROUND);
|
||||||
if(Bind.INFO.isDown() && (this.open == null || !(this.open.selected instanceof client.gui.element.Field || this.open.selected instanceof Area)))
|
if(Bind.INFO.isDown() && (this.open == null || !(this.open.selected instanceof client.gui.element.Field || this.open.selected instanceof Area)))
|
||||||
this.drawInfo();
|
this.drawInfo();
|
||||||
|
|
|
@ -7,7 +7,6 @@ import common.biome.Biome;
|
||||||
import common.block.Block;
|
import common.block.Block;
|
||||||
import common.entity.Entity;
|
import common.entity.Entity;
|
||||||
import common.init.Blocks;
|
import common.init.Blocks;
|
||||||
import common.log.Log;
|
|
||||||
import common.tileentity.TileEntity;
|
import common.tileentity.TileEntity;
|
||||||
import common.util.BlockPos;
|
import common.util.BlockPos;
|
||||||
import common.util.BoundingBox;
|
import common.util.BoundingBox;
|
||||||
|
@ -28,7 +27,6 @@ public class EmptyChunk extends Chunk {
|
||||||
this.liquid = world.dimension.getLiquid();
|
this.liquid = world.dimension.getLiquid();
|
||||||
this.liquidBlock = this.liquid.getBlock();
|
this.liquidBlock = this.liquid.getBlock();
|
||||||
this.liquidMeta = this.liquidBlock.getMetaFromState(this.liquid);
|
this.liquidMeta = this.liquidBlock.getMetaFromState(this.liquid);
|
||||||
Log.SYSTEM.info("See: %d", this.liquidY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getHeight(int x, int z) {
|
public int getHeight(int x, int z) {
|
||||||
|
|
|
@ -960,8 +960,4 @@ public class WorldClient extends AWorldClient
|
||||||
public String getDebugLoadedEntities() {
|
public String getDebugLoadedEntities() {
|
||||||
return "" + this.entities.size();
|
return "" + this.entities.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasNoChunks() {
|
|
||||||
return this.chunkListing.isEmpty();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue