fix portal fluid look

master
QuImUfu 2 months ago
parent ec041f9269
commit b1cd170c60

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

Loading…
Cancel
Save