mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +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);
|
LootTable table = manager.getLootTable(modId);
|
||||||
|
|
||||||
if (table != LootTable.EMPTY) {
|
if (table != LootTable.EMPTY) {
|
||||||
supplier.modifyPools(poolBuilder -> {
|
if (id.getPath().startsWith("blocks/")) {
|
||||||
for (var pool : table.pools) {
|
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