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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user