Skip to content

Commit

Permalink
Remove unneeded Variable in Fabric Loot Modifier
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph T. McQuigg <[email protected]>
  • Loading branch information
JT122406 committed Dec 27, 2024
1 parent b335c96 commit 95f8d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ private static void registerBiomeModifiers() {

private static void registerLootModifiers() {
LootTableEvents.MODIFY.register((resourceManager, lootDataManager, resourceLocation, builder, source) -> {
if (resourceLocation.equals(BuiltInLootTables.SNIFFER_DIGGING)) {
LootPool.Builder pool = LootPool.lootPool()
if (resourceLocation.equals(BuiltInLootTables.SNIFFER_DIGGING))
builder.withPool(LootPool.lootPool()
.setRolls(ConstantValue.exactly(1))
.with(LootItem.lootTableItem(BWGBlocks.BLACK_ROSE.getBlock()).build())
.with(LootItem.lootTableItem(BWGBlocks.PROTEA_FLOWER.getBlock()).build())
.with(LootItem.lootTableItem(BWGBlocks.SILVER_VASE_FLOWER.getBlock()).build());
builder.withPool(pool);
}
.with(LootItem.lootTableItem(BWGBlocks.SILVER_VASE_FLOWER.getBlock()).build()));
});
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maven_group=net.potionstudios
fabric_loader_version=0.16.9
fabric_api_version=0.92.2

forge_version=47.3.12
forge_version=47.3.22
neoforge_version=47.1.106

use_neoforge=false
Expand Down

0 comments on commit 95f8d2c

Please sign in to comment.