1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-20 00:17:38 +00:00

Fix block drop data being generated in the incorrect place

Fixes half of #421
This commit is contained in:
SquidDev
2020-04-24 16:41:46 +01:00
parent 48cb032ddf
commit 08a0342618
14 changed files with 18 additions and 4 deletions

View File

@@ -45,8 +45,9 @@ public class LootTables extends LootTableProvider
private static void basicDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
{
add.accept( block.getRegistryName(), LootTable
add.accept( block.getLootTable(), LootTable
.builder()
.setParameterSet( LootParameterSets.BLOCK )
.addLootPool( LootPool.builder()
.name( "main" )
.rolls( ConstantRange.of( 1 ) )
@@ -57,8 +58,9 @@ public class LootTables extends LootTableProvider
private static void computerDrop( BiConsumer<ResourceLocation, LootTable> add, Block block )
{
add.accept( block.getRegistryName(), LootTable
add.accept( block.getLootTable(), LootTable
.builder()
.setParameterSet( LootParameterSets.BLOCK )
.addLootPool( LootPool.builder()
.name( "main" )
.rolls( ConstantRange.of( 1 ) )