Unset Ignited flag on cancel of Explosion Event
Otherwise the creeper infinite explodes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user