add more loot table conditions
fix https://github.com/Pumpkin-MC/Pumpkin/issues/1155
This commit is contained in:
1 parent
0bc7405f12
commit
91e77c33a0
5 files changed
+38
-12
No files matched your search
@@ -26,6 +26,12 @@ impl LootTableExt for LootTable {
|
||||
|
||||
if let Some(pools) = self.pools {
|
||||
for pool in pools {
|
||||
if let Some(conditions) = pool.conditions
|
||||
&& !conditions.iter().all(|cond| cond.is_fulfilled(¶ms))
|
||||
{
|
||||
return stacks;
|
||||
}
|
||||
|
||||
// TODO
|
||||
let rolls = pool
|
||||
.rolls
|
||||
|
||||
Reference in new issue
Block a user