# Pastebin o4ParYcf public void setPlayerViewRadius(int radius) { radius = MathHelper.clamp(radius, 3, 32); if (radius != this.playerViewRadius) { int i = radius - this.playerViewRadius; for (EntityPlayerMP entityplayermp : Lists.newArrayList(this.players)) { int j = (int)entityplayermp.posX >> 4; int k = (int)entityplayermp.posZ >> 4; if (i > 0) { for (int j1 = j - radius; j1 <= j + radius; ++j1) { for (int k1 = k - radius; k1 <= k + radius; ++k1) { PlayerChunkMapEntry playerchunkmapentry = this.getOrCreateEntry(j1, k1); if (!playerchunkmapentry.containsPlayer(entityplayermp)) { playerchunkmapentry.addPlayer(entityplayermp); } } } } else { for (int l = j - this.playerViewRadius; l <= j + this.playerViewRadius; ++l) { for (int i1 = k - this.playerViewRadius; i1 <= k + this.playerViewRadius; ++i1) { if (!this.overlaps(l, i1, j, k, radius)) { this.getOrCreateEntry(l, i1).removePlayer(entityplayermp); } } } } } this.playerViewRadius = radius; this.markSortPending(); } }