Removed additional logging

This commit is contained in:
Frank 2022-07-27 00:28:08 +02:00
parent 12abe35dcf
commit 0edcd7971f

View file

@ -30,22 +30,17 @@ public class BlockRegistry extends BaseRegistry<Block> {
@Override
public Block register(ResourceLocation id, Block block) {
System.out.println("Register Block " + id + ", " + Item.BY_BLOCK.containsKey(block));
if (!config.getBooleanRoot(id.getNamespace(), true)) {
BCLib.LOGGER.warning("Block " + id + " disabled");
return block;
}
System.out.println(" has " + id + ", " + Item.BY_BLOCK.containsKey(block));
BlockItem item = null;
if (block instanceof CustomItemProvider) {
System.out.println("Get Item for " + id + ": CustomItemProvider");
item = ((CustomItemProvider) block).getCustomItem(id, makeItemSettings());
} else {
System.out.println("Get Item for " + id + ": BlockItem");
item = new BlockItem(block, makeItemSettings());
}
System.out.println(" has " + id + ", " + Item.BY_BLOCK.containsKey(block));
registerBlockItem(id, item);
if (block.defaultBlockState().getMaterial().isFlammable()
&& FlammableBlockRegistry.getDefaultInstance()