mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix java.io.EOFException console spam
This commit is contained in:
1 parent
8f1b1e03f4
commit
17182cc2b2
1 file changed
+2
-12
@@ -51,10 +51,7 @@ public class PacketTileUpdate extends PacketUpdate {
|
||||
|
||||
@Override
|
||||
public void writeData(DataOutputStream data) throws IOException {
|
||||
|
||||
data.writeInt(posX);
|
||||
data.writeInt(posY);
|
||||
data.writeInt(posZ);
|
||||
super.writeData(data);
|
||||
|
||||
data.writeByte(this.orientation.ordinal());
|
||||
data.writeShort(this.errorState.getID());
|
||||
@@ -74,16 +71,11 @@ public class PacketTileUpdate extends PacketUpdate {
|
||||
}
|
||||
} else
|
||||
data.writeInt(-1);
|
||||
|
||||
super.writeData(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readData(DataInputStream data) throws IOException {
|
||||
|
||||
posX = data.readInt();
|
||||
posY = data.readInt();
|
||||
posZ = data.readInt();
|
||||
super.readData(data);
|
||||
|
||||
orientation = ForgeDirection.getOrientation(data.readByte());
|
||||
errorState = ErrorStateRegistry.getErrorState(data.readShort());
|
||||
@@ -99,8 +91,6 @@ public class PacketTileUpdate extends PacketUpdate {
|
||||
owner = null;
|
||||
}
|
||||
}
|
||||
|
||||
super.readData(data);
|
||||
}
|
||||
|
||||
public ForgeDirection getOrientation() {
|
||||
|
||||
Reference in new issue
Block a user