SleepyTrousers/EnderCore#7 Fix mixed up read/write in inv panel packet

This commit is contained in:
tterrag1098 committed 2015-07-08 02:30:31 -04:00
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);
}