Unset Ignited flag on cancel of Explosion Event

Otherwise the creeper infinite explodes
This commit is contained in:
Aikar 2018-06-10 01:18:49 -04:00
parent d6d2d75fe6
commit 809fa1fbea

View file

@ -54,7 +54,7 @@
itemstack.shrink(1);
} else {
itemstack.hurtAndBreak(1, player, getSlotForHand(hand));
@@ -246,11 +266,20 @@
@@ -246,11 +266,21 @@
if (world instanceof ServerLevel worldserver) {
float f = this.isPowered() ? 2.0F : 1.0F;
@ -72,12 +72,13 @@
+ // CraftBukkit start
+ } else {
+ this.swell = 0;
+ this.entityData.set(DATA_IS_IGNITED, Boolean.valueOf(false)); // Paper
+ }
+ // CraftBukkit end
}
}
@@ -258,9 +287,10 @@
@@ -258,9 +288,10 @@
private void spawnLingeringCloud() {
Collection<MobEffectInstance> collection = this.getActiveEffects();
@ -89,7 +90,7 @@
entityareaeffectcloud.setRadius(2.5F);
entityareaeffectcloud.setRadiusOnUse(-0.5F);
entityareaeffectcloud.setWaitTime(10);
@@ -274,7 +304,7 @@
@@ -274,7 +305,7 @@
entityareaeffectcloud.addEffect(new MobEffectInstance(mobeffect));
}