This commit is contained in:
Leijurv 2018-08-28 14:00:40 -07:00
parent 804cad2776
commit 4e531ec578
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -183,7 +183,7 @@ public final class CachedChunk implements IBlockTypeAccess {
* @return The bit index
*/
public static int getPositionIndex(int x, int y, int z) {
return (x + (z << 4) + (y << 8)) << 1;
return (x << 1) + (z << 5) + (y << 9);
}
/**