fixed staff of baldur being bad at lighting entities on fire

closes #293
This commit is contained in:
Ell 2023-02-05 16:02:12 +01:00
parent dd46d4ab95
commit 32629006c7

View file

@ -50,7 +50,7 @@ public class EntityLightProjectile extends ThrowableProjectile {
if (state.getMaterial().isReplaceable())
this.level.setBlockAndUpdate(pos, ModBlocks.LIGHT.defaultBlockState());
} else if (result instanceof EntityHitResult entity) {
entity.getEntity().setRemainingFireTicks(5);
entity.getEntity().setSecondsOnFire(5);
}
}
this.discard();