1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-02 02:27:56 +00:00

Fix issues with building with Java 9+, take 2

Fix another potential issues when using Java 9+ at build time and Java
8 at runtime.
This commit is contained in:
parly
2019-10-24 01:11:25 +09:00
parent 7fe62485fa
commit 429baa350c
2 changed files with 4 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import javax.vecmath.Matrix4f;
import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.util.List;
import java.util.Random;
@@ -170,14 +171,14 @@ public class TileEntityTurtleRenderer extends BlockEntityRenderer<TileTurtle>
{
if( pair.getRight() != null )
{
matrixBuf.clear();
((Buffer) matrixBuf).clear();
float[] t = new float[4];
for( int i = 0; i < 4; i++ )
{
pair.getRight().getColumn( i, t );
matrixBuf.put( t );
}
matrixBuf.flip();
((Buffer) matrixBuf).flip();
GlStateManager.multMatrix( matrixBuf );
}

View File

@@ -63,7 +63,7 @@ public class BinaryWritableHandle extends HandleGeneric
int number = ((Number) args[0]).intValue();
((Buffer) single).clear();
single.put( (byte) number );
single.flip();
((Buffer) single).flip();
m_writer.write( single );
}