Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Formatting
Dieser Commit ist enthalten in:
Ursprung
498867032f
Commit
126ee6e03f
@ -40,13 +40,15 @@ public class MetadataRewriter {
|
|||||||
if (metaIndex.getOldType() == Type.Int) {
|
if (metaIndex.getOldType() == Type.Int) {
|
||||||
output.writeByte(((Integer) value).byteValue());
|
output.writeByte(((Integer) value).byteValue());
|
||||||
}
|
}
|
||||||
|
// After writing the last one
|
||||||
if (metaIndex == MetaIndex.ENTITY_STATUS && type == EntityType.PLAYER) {
|
if (metaIndex == MetaIndex.ENTITY_STATUS && type == EntityType.PLAYER) {
|
||||||
output.writeByte(MetaIndex.PLAYER_HAND.getNewIndex());
|
output.writeByte(MetaIndex.PLAYER_HAND.getNewIndex());
|
||||||
output.writeByte(MetaIndex.PLAYER_HAND.getNewType().getTypeID());
|
output.writeByte(MetaIndex.PLAYER_HAND.getNewType().getTypeID());
|
||||||
if((((Byte)value) & 0x10) == 0x10) //Player eating/aiming/drinking
|
if ((((Byte) value) & 0x10) == 0x10) { // Player eating/aiming/drinking
|
||||||
output.writeByte(1); //Using main hand
|
output.writeByte(1); // Using main hand
|
||||||
else
|
} else {
|
||||||
output.writeByte(0); //Not using any hand to stop animation
|
output.writeByte(0); // Not using any hand to stop animation
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case OptUUID:
|
case OptUUID:
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren