i am good at this modding thing

This commit is contained in:
asie 2018-12-12 14:39:31 +01:00
parent 7699ef9dc5
commit 9d0f790bfc
2 changed files with 1 additions and 6 deletions

View file

@ -33,11 +33,6 @@ import java.util.List;
public class FabricAPI implements ModInitializer {
@Override
public void onInitialize() {
List<String> 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) {

View file

@ -28,7 +28,7 @@ import java.util.Map;
*/
public class BlockEntityRendererRegistry {
public static final BlockEntityRendererRegistry INSTANCE = new BlockEntityRendererRegistry();
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderers;
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderers = null;
private Map<Class<? extends BlockEntity>, BlockEntityRenderer<? extends BlockEntity>> renderersTmp = new HashMap<>();
private BlockEntityRendererRegistry() {