Fix some whitespacing; fix some tests

This commit is contained in:
DoctorMacc 2020-06-20 20:32:03 -04:00
parent 79e03aa37d
commit 02781ed56c
3 changed files with 5 additions and 3 deletions

View file

@ -118,6 +118,7 @@ public class MagicValues {
register(AttributeType.GENERIC_KNOCKBACK_RESISTANCE, "generic.knockback_resistance");
register(AttributeType.GENERIC_MOVEMENT_SPEED, "generic.movement_speed");
register(AttributeType.GENERIC_ATTACK_DAMAGE, "generic.attack_damage");
register(AttributeType.GENERIC_ATTACK_KNOCKBACK, "generic.attack_knockback");
register(AttributeType.GENERIC_ATTACK_SPEED, "generic.attack_speed");
register(AttributeType.GENERIC_ARMOR, "generic.armor");
register(AttributeType.GENERIC_ARMOR_TOUGHNESS, "generic.armor_toughness");

View file

@ -50,8 +50,9 @@ public class ServerJoinGamePacket implements Packet {
this.gameMode = MagicValues.key(GameMode.class, gameMode & GAMEMODE_MASK);
this.gameMode2 = MagicValues.key(GameMode.class, in.readUnsignedByte());
this.worldCount = in.readVarInt();
this.worldNames = new String[this.worldCount];
for (int i = 0; i < this.worldCount; i++) {
in.readString();
this.worldNames[i] = in.readString();
}
this.dimensionCodec = NBT.read(in);
this.dimension = in.readString();