More config refactor
This commit is contained in:
parent
c630e6d22a
commit
74e9adf42e
7 changed files with 96 additions and 133 deletions
|
@ -265,11 +265,11 @@ public class EndBlocks {
|
|||
public static void register() {}
|
||||
|
||||
public static Block registerBlock(Identifier id, Block block) {
|
||||
if (!Configs.BLOCK_CONFIG.getBoolean(id, "enabled", true)) {
|
||||
if (!Configs.BLOCK_CONFIG.getBoolean(id, "blocks", true)) {
|
||||
return block;
|
||||
}
|
||||
Registry.register(Registry.BLOCK, id, block);
|
||||
EndItems.registerItem(id, new BlockItem(block, EndItems.makeBlockItemSettings()));
|
||||
EndItems.registerBlockItem(id, new BlockItem(block, EndItems.makeBlockItemSettings()));
|
||||
return block;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue