Skip to content

Commit

Permalink
added tick display on chunkdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
kafuuchino-desu committed Oct 7, 2019
1 parent 0833397 commit d61ec80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions patches/net/minecraft/world/chunk/Chunk.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@
+ //TISCM: chunk debug
+ if (LoggerRegistry.__chunkdebug){
+ if (this.world.dimension.isNether()) {
+ ChunkLogHelper.onChunkNewState("Nether", this.x, this.z, "l Loaded");
+ ChunkLogHelper.onChunkNewState("Nether", this.x, this.z, "l Loaded tick: " + this.world.getGameTime());
+ }
+ else if (this.world.dimension.hasSkyLight()){
+ ChunkLogHelper.onChunkNewState("Overworld", this.x, this.z, "l Loaded");
+ ChunkLogHelper.onChunkNewState("Overworld", this.x, this.z, "l Loaded tick: " + this.world.getGameTime());
+ }
+ else{
+ ChunkLogHelper.onChunkNewState("End", this.x, this.z, "l Loaded");
+ ChunkLogHelper.onChunkNewState("End", this.x, this.z, "l Loaded tick: " + this.world.getGameTime());
+ }
+ }
+
Expand All @@ -389,13 +389,13 @@
+ //TISCM: chunk debug
+ if (LoggerRegistry.__chunkdebug){
+ if (this.world.dimension.isNether()) {
+ ChunkLogHelper.onChunkNewState("Nether", this.x, this.z, "r Unloaded");
+ ChunkLogHelper.onChunkNewState("Nether", this.x, this.z, "r Unloaded tick: " + this.world.getGameTime());
+ }
+ else if (this.world.dimension.hasSkyLight()){
+ ChunkLogHelper.onChunkNewState("Overworld", this.x, this.z, "r Unloaded");
+ ChunkLogHelper.onChunkNewState("Overworld", this.x, this.z, "r Unloaded tick: " + this.world.getGameTime());
+ }
+ else {
+ ChunkLogHelper.onChunkNewState("End", this.x, this.z, "r Unloaded");
+ ChunkLogHelper.onChunkNewState("End", this.x, this.z, "r Unloaded tick: " + this.world.getGameTime());
+ }
+ }
+
Expand Down

0 comments on commit d61ec80

Please sign in to comment.