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:
Ursprung
c009827622
Commit
ae2592f3d1
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren