Remove EnumAddressee.INVALID

This commit is contained in:
mezz committed 2014-09-13 19:30:21 -07:00
1 parent dff81eb85c
commit f13bacfed5
7 files changed
+19 -15

No files matched your search

@@ -46,11 +46,10 @@ public class PacketLetterInfo extends ForestryPacket {
@Override
public void writeData(DataOutputStream data) throws IOException {
if (type == null || type == EnumAddressee.INVALID) {
if (type == null) {
data.writeShort(-1);
return;
}
data.writeShort(0);
data.writeUTF(type.toString());