futur proof NewChunks

This commit is contained in:
Cloudburst
2021-10-02 22:10:26 +02:00
parent 7c805eef91
commit 122edd0823

View File

@@ -64,7 +64,7 @@ public class NewChunks extends Module {
@EventHandler @EventHandler
private void onRender(Render3DEvent event) { private void onRender(Render3DEvent event) {
if (newChunksColor.get().a>3) { if (newChunksColor.get().a > 5) {
synchronized (newChunks) { synchronized (newChunks) {
for (ChunkPos c : newChunks) { for (ChunkPos c : newChunks) {
if (mc.getCameraEntity().getBlockPos().isWithinDistance(c.getStartPos(), 1024)) { if (mc.getCameraEntity().getBlockPos().isWithinDistance(c.getStartPos(), 1024)) {
@@ -74,7 +74,7 @@ public class NewChunks extends Module {
} }
} }
if (oldChunksColor.get().a>3){ if (oldChunksColor.get().a > 5){
synchronized (oldChunks) { synchronized (oldChunks) {
for (ChunkPos c : oldChunks) { for (ChunkPos c : oldChunks) {
if (mc.getCameraEntity().getBlockPos().isWithinDistance(c.getStartPos(), 1024)) { if (mc.getCameraEntity().getBlockPos().isWithinDistance(c.getStartPos(), 1024)) {
@@ -141,7 +141,7 @@ public class NewChunks extends Module {
for (int x = 0; x < 16; x++) { for (int x = 0; x < 16; x++) {
for (int y = 0; y < mc.world.getHeight(); y++) { for (int y = mc.world.getBottomY(); y < mc.world.getTopY(); y++) {
for (int z = 0; z < 16; z++) { for (int z = 0; z < 16; z++) {
FluidState fluid = chunk.getFluidState(x, y, z); FluidState fluid = chunk.getFluidState(x, y, z);