mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
44 lines
1.8 KiB
Diff
44 lines
1.8 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/renderer/VertexBuffer.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/renderer/VertexBuffer.java
|
|
@@ -123,6 +123,8 @@
|
|
|
|
bitset.set(i1);
|
|
}
|
|
+ this.field_178999_b.limit(this.field_178999_b.capacity());
|
|
+ this.field_178999_b.position(this.func_181664_j());
|
|
}
|
|
|
|
public VertexBuffer.State func_181672_a()
|
|
@@ -507,15 +509,15 @@
|
|
break;
|
|
case USHORT:
|
|
case SHORT:
|
|
- this.field_179001_a.putShort(i, (short)((int)p_181663_1_ * 32767 & 65535));
|
|
- this.field_179001_a.putShort(i + 2, (short)((int)p_181663_2_ * 32767 & 65535));
|
|
- this.field_179001_a.putShort(i + 4, (short)((int)p_181663_3_ * 32767 & 65535));
|
|
+ this.field_179001_a.putShort(i, (short)((int)(p_181663_1_ * 32767) & 65535));
|
|
+ this.field_179001_a.putShort(i + 2, (short)((int)(p_181663_2_ * 32767) & 65535));
|
|
+ this.field_179001_a.putShort(i + 4, (short)((int)(p_181663_3_ * 32767) & 65535));
|
|
break;
|
|
case UBYTE:
|
|
case BYTE:
|
|
- this.field_179001_a.put(i, (byte)((int)p_181663_1_ * 127 & 255));
|
|
- this.field_179001_a.put(i + 1, (byte)((int)p_181663_2_ * 127 & 255));
|
|
- this.field_179001_a.put(i + 2, (byte)((int)p_181663_3_ * 127 & 255));
|
|
+ this.field_179001_a.put(i, (byte)((int)(p_181663_1_ * 127) & 255));
|
|
+ this.field_179001_a.put(i + 1, (byte)((int)(p_181663_2_ * 127) & 255));
|
|
+ this.field_179001_a.put(i + 2, (byte)((int)(p_181663_3_ * 127) & 255));
|
|
}
|
|
|
|
this.func_181667_k();
|
|
@@ -606,4 +608,9 @@
|
|
return this.field_179018_e;
|
|
}
|
|
}
|
|
+
|
|
+ public boolean isColorDisabled()
|
|
+ {
|
|
+ return field_78939_q;
|
|
+ }
|
|
}
|