Merge pull request #8346 from Abextm/fix-contouring

mixins: Fix convex hulls being incorrectly contoured
This commit is contained in:
Adam
2019-03-31 10:18:51 -04:00
committed by GitHub
8 changed files with 64 additions and 38 deletions

View File

@@ -54,6 +54,7 @@ public class Perspective
public static final int LOCAL_COORD_BITS = 7;
public static final int LOCAL_TILE_SIZE = 1 << LOCAL_COORD_BITS; // 128 - size of a tile in local coordinates
public static final int LOCAL_HALF_TILE_SIZE = LOCAL_TILE_SIZE / 2;
public static final int SCENE_SIZE = Constants.SCENE_SIZE; // in tiles
@@ -114,7 +115,7 @@ public class Perspective
* @return a {@link Point} on screen corresponding to the position in
* 3D-space
*/
private static Point localToCanvas(@Nonnull Client client, int x, int y, int z)
public static Point localToCanvas(@Nonnull Client client, int x, int y, int z)
{
if (x >= 128 && y >= 128 && x <= 13056 && y <= 13056)
{