3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-09 01:30:13 +01:00

Update to 1.9.1 PRE 2 :)

Dieser Commit ist enthalten in:
Myles 2016-03-11 16:20:15 +00:00
Ursprung c009827622
Commit ae2592f3d1

Datei anzeigen

@ -608,7 +608,24 @@ public class OutgoingTransformer {
clientEntityTypes.put(id, EntityType.PLAYER); clientEntityTypes.put(id, EntityType.PLAYER);
info.setEntityID(id); info.setEntityID(id);
output.writeInt(id); output.writeInt(id);
output.writeBytes(input);
int gamemode = input.readUnsignedByte();
output.writeByte(gamemode);
int dimension = input.readByte();
output.writeByte(dimension);
int difficulty = input.readUnsignedByte();
if (info.getProtocol() >= 108) {
// 1.8.1 Pre 2
output.writeInt(difficulty);
} else {
output.writeByte(difficulty);
}
int maxPlayers = input.readUnsignedByte();
output.writeByte(maxPlayers);
String level = PacketUtil.readString(input);
PacketUtil.writeString(level, output);
boolean reducedDebug = input.readBoolean();
output.writeBoolean(reducedDebug);
return; return;
} }
if (packet == PacketType.PLAY_SERVER_DIFFICULTY) { if (packet == PacketType.PLAY_SERVER_DIFFICULTY) {