mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-21 04:32:28 +00:00
Fixed chat msgs.
This commit is contained in:
1 parent
8ad6c20ebe
commit
ebf4635e99
39 files changed
+190
-189
No files matched your search
@@ -138,6 +138,22 @@ public class PacketManager extends FMLIndexedMessageToMessageCodec<PacketBase>
|
||||
return channels.get(FMLCommonHandler.instance().getEffectiveSide()).generatePacketFrom(packet);
|
||||
}
|
||||
|
||||
/*
|
||||
public void writeString(ByteArrayDataOutput buffer, String data) throws IOException
|
||||
{
|
||||
byte[] abyte = data.getBytes(Charsets.UTF_8);
|
||||
buffer.writeShort(abyte.length);
|
||||
buffer.writeBytes(abyte);
|
||||
}
|
||||
|
||||
public String readString(ByteArrayDataInput buffer) throws IOException
|
||||
{
|
||||
int j = buffer.readShort();
|
||||
String s = new String(buffer.readBytes(j).array(), Charsets.UTF_8);
|
||||
return s;
|
||||
}
|
||||
*/
|
||||
|
||||
// OTHER METHODS
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user