[Fix] Blocks were registered after Items, which could cause issues with lootTables (quiqueck/BetterNether#151)
This commit is contained in:
parent
a38e6f05b6
commit
13cd641ee0
1 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,8 @@ public class BlockRegistry extends BaseRegistry<Block> {
|
|||
BCLib.LOGGER.warning("Block " + id + " disabled");
|
||||
return block;
|
||||
}
|
||||
block = Registry.register(BuiltInRegistries.BLOCK, id, block);
|
||||
|
||||
BlockItem item = null;
|
||||
if (block instanceof CustomItemProvider) {
|
||||
item = ((CustomItemProvider) block).getCustomItem(id, makeItemSettings());
|
||||
|
@ -40,7 +42,6 @@ public class BlockRegistry extends BaseRegistry<Block> {
|
|||
FlammableBlockRegistry.getDefaultInstance().add(block, 5, 5);
|
||||
}
|
||||
|
||||
block = Registry.register(BuiltInRegistries.BLOCK, id, block);
|
||||
getModBlocks(id.getNamespace()).add(block);
|
||||
|
||||
return block;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue