9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-02 05:46:57 +00:00

Fixed Potionmaster NPE

This commit is contained in:
Auxilor
2021-10-15 10:04:22 +01:00
parent bd7a7cc0dd
commit aa02c00db8

View File

@@ -136,7 +136,7 @@ class EffectPotionmaster : Effect(
effects[PotionEffectType.SLOW] = 4
effects[PotionEffectType.DAMAGE_RESISTANCE] = 2
} else {
effects[data.type.effectType!!] = if (data.type.isUpgradeable) 2 else 1
effects[data.type.effectType ?: return] = if (data.type.isUpgradeable) 2 else 1
}
for (entity in entities) {