Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Format some lines properly
Dieser Commit ist enthalten in:
Ursprung
8e6d76296d
Commit
114a7b6bd6
@ -1,10 +1,10 @@
|
|||||||
package us.myles.ViaVersion.transformers;
|
package us.myles.ViaVersion.transformers;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
import us.myles.ViaVersion.CancelException;
|
||||||
import us.myles.ViaVersion.*;
|
import us.myles.ViaVersion.ConnectionInfo;
|
||||||
|
import us.myles.ViaVersion.ViaVersionPlugin;
|
||||||
import us.myles.ViaVersion.packets.PacketType;
|
import us.myles.ViaVersion.packets.PacketType;
|
||||||
import us.myles.ViaVersion.packets.State;
|
import us.myles.ViaVersion.packets.State;
|
||||||
import us.myles.ViaVersion.util.PacketUtil;
|
import us.myles.ViaVersion.util.PacketUtil;
|
||||||
|
@ -275,8 +275,7 @@ public class OutgoingTransformer {
|
|||||||
output.writeInt(data);
|
output.writeInt(data);
|
||||||
|
|
||||||
short vX = 0, vY = 0, vZ = 0;
|
short vX = 0, vY = 0, vZ = 0;
|
||||||
if(data > 0)
|
if (data > 0) {
|
||||||
{
|
|
||||||
vX = input.readShort();
|
vX = input.readShort();
|
||||||
vY = input.readShort();
|
vY = input.readShort();
|
||||||
vZ = input.readShort();
|
vZ = input.readShort();
|
||||||
@ -381,7 +380,7 @@ public class OutgoingTransformer {
|
|||||||
PacketUtil.writeString(fixJson(line), output);
|
PacketUtil.writeString(fixJson(line), output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(packet == PacketType.PLAY_CHAT_MESSAGE) {
|
if (packet == PacketType.PLAY_CHAT_MESSAGE) {
|
||||||
String chat = PacketUtil.readString(input);
|
String chat = PacketUtil.readString(input);
|
||||||
PacketUtil.writeString(fixJson(chat), output);
|
PacketUtil.writeString(fixJson(chat), output);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren