Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Implement changes to entity effect
Dieser Commit ist enthalten in:
Ursprung
fd0bd53826
Commit
c704b3709a
@ -428,6 +428,20 @@ public class OutgoingTransformer {
|
|||||||
output.writeBytes(input);
|
output.writeBytes(input);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (packet == PacketType.PLAY_ENTITY_EFFECT) {
|
||||||
|
int id = PacketUtil.readVarInt(input);
|
||||||
|
PacketUtil.writeVarInt(id, output);
|
||||||
|
byte effectID = input.readByte();
|
||||||
|
output.writeByte(effectID);
|
||||||
|
byte amplifier = input.readByte();
|
||||||
|
output.writeByte(amplifier);
|
||||||
|
int duration = PacketUtil.readVarInt(input);
|
||||||
|
PacketUtil.writeVarInt(duration, output);
|
||||||
|
// we need to write as a byte instead of boolean
|
||||||
|
boolean hideParticles = input.readBoolean();
|
||||||
|
output.writeByte(hideParticles ? 1 : 0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (packet == PacketType.PLAY_TEAM) {
|
if (packet == PacketType.PLAY_TEAM) {
|
||||||
String teamName = PacketUtil.readString(input);
|
String teamName = PacketUtil.readString(input);
|
||||||
PacketUtil.writeString(teamName, output);
|
PacketUtil.writeString(teamName, output);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren