Summon stead spell (Self + Summon Steed) causes server to crash
dbravo4 opened this issue ยท 1 comments
Crash Report: https://pastebin.com/D4u54YHF
According to the report, the crash is located in this method:
@SubscribeEvent
public static void summonedEvent(SummonEvent event) {
if (!event.world.isClientSide && SummoningFocus.containsThis(event.world, event.summon.getOwner())) {
event.summon.setTicksLeft(event.summon.getTicksLeft() * 2);
if (event.summon.getLivingEntity() != null) {
event.summon.getLivingEntity().addEffect(new MobEffectInstance(MobEffects.DAMAGE_BOOST, 500, 2));
event.summon.getLivingEntity().addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 500, 1));
}
}
}
Again, for clarity, the crash occurs when summon steed is casted along with self.
MOD VERSION: 3.21.4
MODPACK: Cottage Witch: Recast