mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Mostly rendering improvements
This commit is contained in:
1 parent
25d0b7441b
commit
0179ea1f38
44 files changed
+505
-283
No files matched your search
@@ -81,6 +81,8 @@ import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
|
||||
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
|
||||
import scala.tools.nsc.Global.Run;
|
||||
|
||||
/**
|
||||
* Mekanism packet handler. As always, use packets sparingly!
|
||||
* @author AidanBrady
|
||||
@@ -201,6 +203,10 @@ public class PacketHandler
|
||||
{
|
||||
encode(((ArrayList)data).toArray(), output);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new RuntimeException("Un-encodable data passed to encode(): " + data);
|
||||
}
|
||||
}
|
||||
} catch(Exception e) {
|
||||
Mekanism.logger.error("Error while encoding packet data.");
|
||||
|
||||
Reference in new issue
Block a user