Looks like max view distance is 35 chunks, and use minus not plus..
This commit is contained in:
		| @@ -315,7 +315,7 @@ public class DisguiseUtilities { | |||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|             try { |             try { | ||||||
|                 int chunkX = (int) Math.floor(loc.getBlockX() / 16D) + 17, chunkZ = (int) Math.floor(loc.getBlockZ() / 16D) + 17; |                 int chunkX = (int) Math.floor(loc.getX() / 16D) - 20, chunkZ = (int) Math.floor(loc.getZ() / 16D) - 20; | ||||||
|                 chunkX -= chunkX % 10; |                 chunkX -= chunkX % 10; | ||||||
|                 chunkZ -= chunkZ % 10; |                 chunkZ -= chunkZ % 10; | ||||||
|                 xChunk.set(bedChunk, chunkX); |                 xChunk.set(bedChunk, chunkX); | ||||||
| @@ -356,8 +356,8 @@ public class DisguiseUtilities { | |||||||
|         bedInts.write(0, entity.getEntityId()); |         bedInts.write(0, entity.getEntityId()); | ||||||
|         if (ReflectionManager.is1_8(player)) { |         if (ReflectionManager.is1_8(player)) { | ||||||
|             PlayerWatcher watcher = disguise.getWatcher(); |             PlayerWatcher watcher = disguise.getWatcher(); | ||||||
|             int chunkX = (int) Math.floor(playerLocation.getBlockX() / 16D) + 17, chunkZ = (int) Math.floor(playerLocation |             int chunkX = (int) Math.floor(playerLocation.getX() / 16D) - 20, chunkZ = (int) Math | ||||||
|                     .getBlockZ() / 16D) + 17; |                     .floor(playerLocation.getZ() / 16D) - 20; | ||||||
|             chunkX -= chunkX % 10; |             chunkX -= chunkX % 10; | ||||||
|             chunkZ -= chunkZ % 10; |             chunkZ -= chunkZ % 10; | ||||||
|             bedInts.write(1, (chunkX * 16) + 1 + watcher.getSleepingDirection().getModX()); |             bedInts.write(1, (chunkX * 16) + 1 + watcher.getSleepingDirection().getModX()); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user