Lootables "Only Drop For" miscalculation corrected.

This commit is contained in:
Brianna 2019-07-10 15:09:36 -04:00
parent f68d7e9e58
commit c66eda4062

View File

@ -51,8 +51,7 @@ public class LootManager {
&& loot.runChance(looting)) {
if (loot.getOnlyDropFor().size() != 0
&& entity.getKiller() != null
&& loot.getOnlyDropFor().stream().noneMatch(type -> type == entity.getKiller().getType()))
&& loot.getOnlyDropFor().stream().noneMatch(type -> entity.getKiller() != null && type == entity.getKiller().getType()))
return toDrop;
if (loot.getChildLoot().size() > 0) {