Fixed Logistical Transporter packet issue, fixed JEI crashes

This commit is contained in:
aidancbrady committed 2017-03-29 10:23:08 -04:00
1 parent afd3525a4b
commit bfef18c0d3
6 files changed
+14 -49

No files matched your search

@@ -150,7 +150,11 @@ public class PacketHandler
try {
for(Object data : dataValues)
{
if(data instanceof Integer)
if(data instanceof Byte)
{
output.writeByte((Byte)data);
}
else if(data instanceof Integer)
{
output.writeInt((Integer)data);
}
@@ -178,10 +182,6 @@ public class PacketHandler
{
writeString(output, (String)data);
}
else if(data instanceof Byte)
{
output.writeByte((Byte)data);
}
else if(data instanceof EnumFacing)
{
output.writeInt(((EnumFacing)data).ordinal());