From e07377f91e6803e5093fd17f4e5cf5a0b300fe63 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 19 Mar 2024 00:35:17 +0000 Subject: [PATCH] Fixed unicopia loot replacing vanilla drops for blocks instead of adding to it --- .../com/minelittlepony/unicopia/item/URecipes.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/item/URecipes.java b/src/main/java/com/minelittlepony/unicopia/item/URecipes.java index 0c509917..52aff325 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/URecipes.java +++ b/src/main/java/com/minelittlepony/unicopia/item/URecipes.java @@ -58,11 +58,17 @@ public interface URecipes { LootTable table = manager.getLootTable(modId); if (table != LootTable.EMPTY) { - supplier.modifyPools(poolBuilder -> { + if (id.getPath().startsWith("blocks/")) { for (var pool : table.pools) { - poolBuilder.with(List.of(pool.entries)); + supplier.pool(pool); } - }); + } else { + supplier.modifyPools(poolBuilder -> { + for (var pool : table.pools) { + poolBuilder.with(List.of(pool.entries)); + } + }); + } } }); }