extend dimension system, remove dim ids
This commit is contained in:
parent
a080ed5583
commit
f613bd2122
46 changed files with 1216 additions and 1283 deletions
|
@ -498,6 +498,8 @@ public class Client implements IThreadListener {
|
|||
private boolean waitingForFile;
|
||||
private boolean refreshing;
|
||||
|
||||
public String dimensionName;
|
||||
|
||||
public String message;
|
||||
public int total;
|
||||
public int progress = -1;
|
||||
|
@ -1590,7 +1592,7 @@ public class Client implements IThreadListener {
|
|||
// SKC.loaded(true);
|
||||
}
|
||||
|
||||
public void setDimensionAndSpawnPlayer(int dimension, int type)
|
||||
public void setDimensionAndSpawnPlayer(int type)
|
||||
{
|
||||
this.world.removeAllEntities();
|
||||
int i = 0;
|
||||
|
@ -1839,9 +1841,9 @@ public class Client implements IThreadListener {
|
|||
if(this.world.isBlockLoaded(blockpos)) {
|
||||
ChunkClient chunk = this.world.getChunk(blockpos);
|
||||
biome = chunk.getBiome(blockpos);
|
||||
bline = "Biom: " + biome.display + " (" + biome.id + ")" + /* (this.debugHideInfo ? "" : */ (", D: " +
|
||||
bline = "Biom: " + biome.display + " (" + biome.name + ")" + /* (this.debugHideInfo ? "" : */ (", D: " +
|
||||
TextColor.stripCodes(this.world.dimension.getFormattedName(false)) +
|
||||
" (" + this.world.dimension.getDimensionId() + ")");
|
||||
" (" + (this.dimensionName == null ? UniverseRegistry.getName(this.world.dimension) : this.dimensionName) + ")");
|
||||
lline = "Licht: " + chunk.getLightSub(blockpos, 0) + " (" + chunk.getLight(LightType.SKY, blockpos) + " Himmel, "
|
||||
+ chunk.getLight(LightType.BLOCK, blockpos) + " Blöcke, " + String.format(
|
||||
"%.1f", this.world.getSunBrightness(1.0f) * 15.0f) + " Welt), A: "
|
||||
|
@ -1850,7 +1852,7 @@ public class Client implements IThreadListener {
|
|||
else {
|
||||
bline = "Biom: <?>, D: " +
|
||||
TextColor.stripCodes(this.world.dimension.getFormattedName(false)) +
|
||||
" (" + this.world.dimension.getDimensionId() + ")";
|
||||
" (" + (this.dimensionName == null ? UniverseRegistry.getName(this.world.dimension) : this.dimensionName) + ")";
|
||||
lline = "Licht: " + String.format(
|
||||
"%.1f", this.world.getSunBrightness(1.0f) * 15.0f) + " Welt, A: "
|
||||
+ String.format("%.3f", this.world.getCelestialAngle(1.0f));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue