From 9d0f790bfc67d7c1a0754341530a9cd89b8cd8fb Mon Sep 17 00:00:00 2001 From: asie Date: Wed, 12 Dec 2018 14:39:31 +0100 Subject: [PATCH] i am good at this modding thing --- src/main/java/net/fabricmc/fabric/FabricAPI.java | 5 ----- .../fabric/client/render/BlockEntityRendererRegistry.java | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/net/fabricmc/fabric/FabricAPI.java b/src/main/java/net/fabricmc/fabric/FabricAPI.java index 73f809798..4a57e4132 100644 --- a/src/main/java/net/fabricmc/fabric/FabricAPI.java +++ b/src/main/java/net/fabricmc/fabric/FabricAPI.java @@ -33,11 +33,6 @@ import java.util.List; public class FabricAPI implements ModInitializer { @Override public void onInitialize() { - List ss = null; - for (String s : ss) { - s.length(); - } - PlayerInteractionEvent.BREAK_BLOCK.register((player, world, hand, pos, facing) -> { BlockState state = world.getBlockState(pos); if (state instanceof BreakInteractable) { diff --git a/src/main/java/net/fabricmc/fabric/client/render/BlockEntityRendererRegistry.java b/src/main/java/net/fabricmc/fabric/client/render/BlockEntityRendererRegistry.java index e8f73c5e7..d9c99bb1f 100644 --- a/src/main/java/net/fabricmc/fabric/client/render/BlockEntityRendererRegistry.java +++ b/src/main/java/net/fabricmc/fabric/client/render/BlockEntityRendererRegistry.java @@ -28,7 +28,7 @@ import java.util.Map; */ public class BlockEntityRendererRegistry { public static final BlockEntityRendererRegistry INSTANCE = new BlockEntityRendererRegistry(); - private Map, BlockEntityRenderer> renderers; + private Map, BlockEntityRenderer> renderers = null; private Map, BlockEntityRenderer> renderersTmp = new HashMap<>(); private BlockEntityRendererRegistry() {