mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-19 05:51:23 +01:00
Lootables "Only Drop For" miscalculation corrected.
This commit is contained in:
parent
f68d7e9e58
commit
c66eda4062
@ -51,8 +51,7 @@ public class LootManager {
|
|||||||
&& loot.runChance(looting)) {
|
&& loot.runChance(looting)) {
|
||||||
|
|
||||||
if (loot.getOnlyDropFor().size() != 0
|
if (loot.getOnlyDropFor().size() != 0
|
||||||
&& entity.getKiller() != null
|
&& loot.getOnlyDropFor().stream().noneMatch(type -> entity.getKiller() != null && type == entity.getKiller().getType()))
|
||||||
&& loot.getOnlyDropFor().stream().noneMatch(type -> type == entity.getKiller().getType()))
|
|
||||||
return toDrop;
|
return toDrop;
|
||||||
|
|
||||||
if (loot.getChildLoot().size() > 0) {
|
if (loot.getChildLoot().size() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user