Skip to content

Commit c5f1db5

Browse files
committed
Avoid simple cube when faces have UV rotations
1 parent dd48aa0 commit c5f1db5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/dynmapblockscan/core/model/BlockFace.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public BlockFace(BlockFace src, String txt, int rot) {
3232
public boolean isFullFace() {
3333
if (cullface == null) return false;
3434
if (uv != null) {
35-
if ((Math.min(uv[0], uv[2]) != 0.0F) || (Math.max(uv[0], uv[2]) != 16.0F) ||
36-
(Math.min(uv[1], uv[3]) != 0.0F) || (Math.max(uv[1], uv[3]) != 16.0F)) {
35+
if ((uv[0] != 0.0F) || (uv[2] != 16.0F) ||
36+
(uv[1] != 0.0F) || (uv[3] != 16.0F)) {
3737
return false;
3838
}
3939
}

0 commit comments

Comments
 (0)