mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 03:13:43 +01:00
Ghost blocks are less spooky.
This commit is contained in:
parent
a1e10a5c3c
commit
d735d237ec
1 changed files with 3 additions and 2 deletions
|
@ -142,7 +142,8 @@ public abstract class GhostBlockRenderer {
|
|||
Vector3f vector3f = new Vector3f((float) vec3i.getX(), (float) vec3i.getY(), (float) vec3i.getZ());
|
||||
Matrix4f matrix4f = p_227890_1_.getModel();
|
||||
vector3f.transform(p_227890_1_.getNormal());
|
||||
int j = aint.length / 8;
|
||||
int vertexSize = DefaultVertexFormats.BLOCK.getIntegerSize();
|
||||
int j = aint.length / vertexSize;
|
||||
|
||||
try (MemoryStack memorystack = MemoryStack.stackPush()) {
|
||||
ByteBuffer bytebuffer = memorystack.malloc(DefaultVertexFormats.BLOCK.getSize());
|
||||
|
@ -150,7 +151,7 @@ public abstract class GhostBlockRenderer {
|
|||
|
||||
for (int k = 0; k < j; ++k) {
|
||||
((Buffer) intbuffer).clear();
|
||||
intbuffer.put(aint, k * 8, 8);
|
||||
intbuffer.put(aint, k * vertexSize, vertexSize);
|
||||
float f = bytebuffer.getFloat(0);
|
||||
float f1 = bytebuffer.getFloat(4);
|
||||
float f2 = bytebuffer.getFloat(8);
|
||||
|
|
Loading…
Reference in a new issue