Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
Make this more readable with the base colors
Dieser Commit ist enthalten in:
Ursprung
478e663506
Commit
63d3dcb31b
@ -235,31 +235,31 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It
|
|||||||
wrapper.passthrough(Type.BYTE); // Z
|
wrapper.passthrough(Type.BYTE); // Z
|
||||||
byte[] data = wrapper.passthrough(Type.BYTE_ARRAY_PRIMITIVE);
|
byte[] data = wrapper.passthrough(Type.BYTE_ARRAY_PRIMITIVE);
|
||||||
for (int i = 0; i < data.length; i++) {
|
for (int i = 0; i < data.length; i++) {
|
||||||
int color = data[i] & 0xFF;
|
int color = (data[i] & 0xFF) / 4;
|
||||||
int newColor = -1;
|
int newColor = -1;
|
||||||
switch (color) {
|
switch (color) {
|
||||||
case 208:
|
case 52:
|
||||||
newColor = 112;
|
newColor = 28;
|
||||||
break;
|
break;
|
||||||
case 212:
|
case 53:
|
||||||
newColor = 152;
|
newColor = 38;
|
||||||
break;
|
break;
|
||||||
case 216:
|
case 54:
|
||||||
newColor = 140;
|
newColor = 35;
|
||||||
break;
|
break;
|
||||||
case 220:
|
case 55:
|
||||||
newColor = 128;
|
newColor = 32;
|
||||||
break;
|
break;
|
||||||
case 224:
|
case 56:
|
||||||
case 232:
|
case 58:
|
||||||
newColor = 92;
|
newColor = 23;
|
||||||
break;
|
break;
|
||||||
case 228:
|
case 57:
|
||||||
newColor = 96;
|
newColor = 24;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (newColor != -1) {
|
if (newColor != -1) {
|
||||||
data[i] = (byte) newColor;
|
data[i] = (byte) (newColor * 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren