Skip to content

Commit

Permalink
getter is fast enough
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 1, 2025
1 parent c4fbc7e commit e7dc6a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ public void disable() {
private void onChunkLoad(ChunkLoadEvent event) {
if (ChunkUtil.isRetrievalUnsafe(event.getChunk())) return;
if (!alsoCheckNewChunks && event.isNewChunk()) return;
World world = event.getWorld();
if (world.getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(world.getName())) return;
if (event.getWorld().getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(event.getWorld().getName())) return;

if (!checkShouldPauseOnLowTPS || AnarchyExploitFixes.tickReporter().getTPS() >= pauseTPS) {
ChunkUtil.createBedrockLayer(event.getChunk(), config.nether_ceiling_max_y);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ public void disable() {
private void onChunkLoad(ChunkLoadEvent event) {
if (ChunkUtil.isRetrievalUnsafe(event.getChunk())) return;
if (!alsoCheckNewChunks && event.isNewChunk()) return;
World world = event.getWorld();
if (world.getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(world.getName())) return;
if (event.getWorld().getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(event.getWorld().getName())) return;

if (!checkShouldPauseOnLowTPS || AnarchyExploitFixes.tickReporter().getTPS() >= pauseTPS) {
ChunkUtil.createBedrockLayer(event.getChunk(), world.getMinHeight());
ChunkUtil.createBedrockLayer(event.getChunk(), event.getWorld().getMinHeight());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ public void disable() {
private void onChunkLoad(ChunkLoadEvent event) {
if (ChunkUtil.isRetrievalUnsafe(event.getChunk())) return;
if (!alsoCheckNewChunks && event.isNewChunk()) return;
World world = event.getWorld();
if (world.getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(world.getName())) return;
if (event.getWorld().getEnvironment() != World.Environment.NETHER) return;
if (exemptedWorlds.contains(event.getWorld().getName())) return;

if (!checkShouldPauseOnLowTPS || AnarchyExploitFixes.tickReporter().getTPS() >= pauseTPS) {
ChunkUtil.createBedrockLayer(event.getChunk(), world.getMinHeight());
ChunkUtil.createBedrockLayer(event.getChunk(), event.getWorld().getMinHeight());
}
}
}

0 comments on commit e7dc6a4

Please sign in to comment.