[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");
|
BCLib.LOGGER.warning("Block " + id + " disabled");
|
||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
block = Registry.register(BuiltInRegistries.BLOCK, id, block);
|
||||||
|
|
||||||
BlockItem item = null;
|
BlockItem item = null;
|
||||||
if (block instanceof CustomItemProvider) {
|
if (block instanceof CustomItemProvider) {
|
||||||
item = ((CustomItemProvider) block).getCustomItem(id, makeItemSettings());
|
item = ((CustomItemProvider) block).getCustomItem(id, makeItemSettings());
|
||||||
|
@ -39,8 +41,7 @@ public class BlockRegistry extends BaseRegistry<Block> {
|
||||||
.getBurnChance() == 0) {
|
.getBurnChance() == 0) {
|
||||||
FlammableBlockRegistry.getDefaultInstance().add(block, 5, 5);
|
FlammableBlockRegistry.getDefaultInstance().add(block, 5, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
block = Registry.register(BuiltInRegistries.BLOCK, id, block);
|
|
||||||
getModBlocks(id.getNamespace()).add(block);
|
getModBlocks(id.getNamespace()).add(block);
|
||||||
|
|
||||||
return block;
|
return block;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue