fix accidental *16 for render distance in search

This commit is contained in:
Bella 2020-04-21 17:19:58 -04:00
parent 455e21f67c
commit 7b271c5121
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 3 additions and 3 deletions

View File

@ -182,9 +182,9 @@ public class Search extends Module {
private void reloadChunks() {
int[] pcoords = getCurrentCoord(false);
int renderdist = mc.gameSettings.renderDistanceChunks * 16;
if (renderdist > 8 * 16) {
renderdist = 8 * 16;
int renderdist = mc.gameSettings.renderDistanceChunks;
if (renderdist > 8) {
renderdist = 8;
}
ChunkProviderClient providerClient = mc.world.getChunkProvider();
for (int x = -renderdist; x < renderdist; x++) {