mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
SleepyTrousers/EnderCore#7 Fix mixed up read/write in inv panel packet
This commit is contained in:
1 parent
9af57bfea8
commit
d0780f1818
1 file changed
+2
-2
@@ -32,7 +32,7 @@ public class PacketGuiSettings extends MessageTileEntity<TileInventoryPanel> imp
|
||||
public void fromBytes(ByteBuf buf) {
|
||||
super.fromBytes(buf);
|
||||
sortMode = buf.readInt();
|
||||
ByteBufUtils.writeUTF8String(buf, filterString);
|
||||
filterString = ByteBufUtils.readUTF8String(buf);
|
||||
sync = buf.readBoolean();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ public class PacketGuiSettings extends MessageTileEntity<TileInventoryPanel> imp
|
||||
public void toBytes(ByteBuf buf) {
|
||||
super.toBytes(buf);
|
||||
buf.writeInt(sortMode);
|
||||
filterString = ByteBufUtils.readUTF8String(buf);
|
||||
ByteBufUtils.writeUTF8String(buf, filterString);
|
||||
buf.writeBoolean(sync);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user