mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Update ForestryPacket.java
This commit is contained in:
1 parent
255bd9da99
commit
508b26ca45
1 file changed
+3
-7
@@ -23,13 +23,9 @@ public abstract class ForestryPacket implements IForestryPacket {
|
||||
public final FMLProxyPacket getPacket() {
|
||||
PacketBufferForestry data = new PacketBufferForestry(Unpooled.buffer());
|
||||
|
||||
try {
|
||||
IPacketId id = getPacketId();
|
||||
data.writeByte(id.ordinal());
|
||||
writeData(data);
|
||||
} catch (IOException e) {
|
||||
Log.error("Failed to write packet.", e);
|
||||
}
|
||||
IPacketId id = getPacketId();
|
||||
data.writeByte(id.ordinal());
|
||||
writeData(data);
|
||||
|
||||
return new FMLProxyPacket(data, PacketHandler.channelId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user