diff --git a/src/main/java/dan200/computercraft/client/ClientRegistry.java b/src/main/java/dan200/computercraft/client/ClientRegistry.java index ff4bcfd66..48bd06443 100644 --- a/src/main/java/dan200/computercraft/client/ClientRegistry.java +++ b/src/main/java/dan200/computercraft/client/ClientRegistry.java @@ -121,6 +121,12 @@ public final class ClientRegistry @SubscribeEvent public static void onItemColours( ColorHandlerEvent.Item event ) { + if( ComputerCraft.Items.disk == null || ComputerCraft.Blocks.turtleNormal == null ) + { + ComputerCraft.log.warn( "Block/item registration has failed. Skipping registration of item colours." ); + return; + } + event.getItemColors().register( ( stack, layer ) -> layer == 1 ? ((ItemDisk) stack.getItem()).getColour( stack ) : 0xFFFFFF, ComputerCraft.Items.disk