mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed unicopia loot replacing vanilla drops for blocks instead of adding to it
This commit is contained in:
parent
7d1d2f45da
commit
e07377f91e
1 changed files with 9 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue