Changed name
This commit is contained in:
parent
a82c9225a4
commit
2bf4e01e9c
2 changed files with 3 additions and 3 deletions
|
@ -264,7 +264,7 @@ public class EndBlocks {
|
|||
public static void register() {}
|
||||
|
||||
public static Block registerBlock(Identifier id, Block block) {
|
||||
if (!Configs.BLOCK_CONFIG.getBoolean(id, "blocks", true)) {
|
||||
if (!Configs.BLOCK_CONFIG.getBoolean(id, "enabled", true)) {
|
||||
return block;
|
||||
}
|
||||
Registry.register(Registry.BLOCK, id, block);
|
||||
|
|
|
@ -118,7 +118,7 @@ public class EndItems {
|
|||
}
|
||||
|
||||
public static Item registerItem(Identifier id, Item item) {
|
||||
if (!Configs.ITEM_CONFIG.getBoolean(id, "items", true)) {
|
||||
if (!Configs.ITEM_CONFIG.getBoolean(id, "enabled", true)) {
|
||||
return item;
|
||||
}
|
||||
if (item != Items.AIR) {
|
||||
|
@ -133,7 +133,7 @@ public class EndItems {
|
|||
|
||||
protected static ToolItem registerTool(String name, ToolItem item) {
|
||||
Identifier id = BetterEnd.makeID(name);
|
||||
if (!Configs.ITEM_CONFIG.getBoolean(id, "items", true)) {
|
||||
if (!Configs.ITEM_CONFIG.getBoolean(id, "enabled", true)) {
|
||||
return item;
|
||||
}
|
||||
Registry.register(Registry.ITEM, id, item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue