mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-23 02:25:19 +01:00
Formatting
This commit is contained in:
parent
498867032f
commit
126ee6e03f
@ -40,14 +40,16 @@ public class MetadataRewriter {
|
|||||||
if (metaIndex.getOldType() == Type.Int) {
|
if (metaIndex.getOldType() == Type.Int) {
|
||||||
output.writeByte(((Integer) value).byteValue());
|
output.writeByte(((Integer) value).byteValue());
|
||||||
}
|
}
|
||||||
if (metaIndex == MetaIndex.ENTITY_STATUS && type == EntityType.PLAYER) {
|
// After writing the last one
|
||||||
output.writeByte(MetaIndex.PLAYER_HAND.getNewIndex());
|
if (metaIndex == MetaIndex.ENTITY_STATUS && type == EntityType.PLAYER) {
|
||||||
output.writeByte(MetaIndex.PLAYER_HAND.getNewType().getTypeID());
|
output.writeByte(MetaIndex.PLAYER_HAND.getNewIndex());
|
||||||
if((((Byte)value) & 0x10) == 0x10) //Player eating/aiming/drinking
|
output.writeByte(MetaIndex.PLAYER_HAND.getNewType().getTypeID());
|
||||||
output.writeByte(1); //Using main hand
|
if ((((Byte) value) & 0x10) == 0x10) { // Player eating/aiming/drinking
|
||||||
else
|
output.writeByte(1); // Using main hand
|
||||||
output.writeByte(0); //Not using any hand to stop animation
|
} else {
|
||||||
}
|
output.writeByte(0); // Not using any hand to stop animation
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case OptUUID:
|
case OptUUID:
|
||||||
String owner = (String) value;
|
String owner = (String) value;
|
||||||
|
Loading…
Reference in New Issue
Block a user