Removed additional logging
This commit is contained in:
parent
12abe35dcf
commit
0edcd7971f
1 changed files with 0 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue