fix portal fluid look

This commit is contained in:
QuImUfu 2024-03-31 14:20:43 +02:00
parent ec041f9269
commit b1cd170c60

View File

@ -98,21 +98,21 @@ public class CommonPortalFluidRenderer {
switch (axis) {
case X -> {
if (odd) {
uIu2IvIv2[0] = sprite.getFrameU(0.5F + squishedBottom);
uIu2IvIv2[1] = sprite.getFrameU(0.5F + squishedTop);
uIu2IvIv2[0] = sprite.getFrameU(1.F/32.F + squishedBottom);
uIu2IvIv2[1] = sprite.getFrameU(1.F/32.F + squishedTop);
} else {
uIu2IvIv2[0] = sprite.getFrameU(0.F + squishedBottom);
uIu2IvIv2[1] = sprite.getFrameU(squishedTop);
}
uIu2IvIv2[2] = sprite.getFrameV(0.F);
uIu2IvIv2[3] = sprite.getFrameV(16.F);
uIu2IvIv2[3] = sprite.getFrameV(1.F);
}
case Z -> {
if (direction.getAxis() == Direction.Axis.Y) {
if (odd) {
uIu2IvIv2[2] = sprite.getFrameV(0.5F + squishedBottom);
uIu2IvIv2[3] = sprite.getFrameV(0.5F + squishedTop);
uIu2IvIv2[2] = sprite.getFrameV(1.F/32.F + squishedBottom);
uIu2IvIv2[3] = sprite.getFrameV(1.F/32.F + squishedTop);
} else {
uIu2IvIv2[2] = sprite.getFrameV(squishedBottom);
@ -122,8 +122,8 @@ public class CommonPortalFluidRenderer {
uIu2IvIv2[1] = sprite.getFrameU(1.F);
} else {
if (odd) {
uIu2IvIv2[0] = sprite.getFrameU(0.5F + squishedBottom);
uIu2IvIv2[1] = sprite.getFrameU(0.5F + squishedTop);
uIu2IvIv2[0] = sprite.getFrameU(1.F/32.F + squishedBottom);
uIu2IvIv2[1] = sprite.getFrameU(1.F/32.F + squishedTop);
} else {
uIu2IvIv2[0] = sprite.getFrameU(squishedBottom);
@ -136,8 +136,8 @@ public class CommonPortalFluidRenderer {
}
case Y -> {
if (odd) {
uIu2IvIv2[2] = sprite.getFrameV(0.5F + squishedBottom);
uIu2IvIv2[3] = sprite.getFrameV(0.5F + squishedTop);
uIu2IvIv2[2] = sprite.getFrameV(1.F/32.F + squishedBottom);
uIu2IvIv2[3] = sprite.getFrameV(1.F/32.F + squishedTop);
} else {
uIu2IvIv2[2] = sprite.getFrameV(squishedBottom);