fix portal fluid look
This commit is contained in:
		
							parent
							
								
									ec041f9269
								
							
						
					
					
						commit
						b1cd170c60
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user