Add config for mobs immune to default effects
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
} else {
|
||||
this.noActionTime = 0;
|
||||
}
|
||||
@@ -549,7 +596,7 @@
|
||||
@@ -549,12 +596,12 @@
|
||||
|
||||
@Override
|
||||
public boolean canUsePortal(boolean allowVehicles) {
|
||||
@@ -157,3 +157,9 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeAffected(MobEffectInstance effect) {
|
||||
- return effect.is(MobEffects.WITHER) ? false : super.canBeAffected(effect);
|
||||
+ return effect.is(MobEffects.WITHER) && this.level().paperConfig().entities.mobEffects.immuneToWitherEffect.wither ? false : super.canBeAffected(effect); // Paper - Add config for mobs immune to default effects
|
||||
}
|
||||
|
||||
private class WitherDoNothingGoal extends Goal {
|
||||
|
||||
Reference in New Issue
Block a user