Clean up more null issues

This commit is contained in:
mezz committed 2016-12-28 23:55:10 -08:00
1 parent 1fa461430e
commit 4abbc92472
142 files changed
+707 -617

No files matched your search

+6 -1
View File
@@ -72,7 +72,12 @@ public class Forestry {
}
@Nullable
public static PacketHandler packetHandler;
private static PacketHandler packetHandler;
public static PacketHandler getPacketHandler() {
Preconditions.checkState(packetHandler != null);
return packetHandler;
}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {