The bug
So whenever I go into creative mode and there is a creeper nearby it explodes. I was just testing an automated music disc farm, and when I went back into creative mode to get my stuff the creepers that weren't killed exploded for some reason. I am very confused right now..... ._.
Code analysis
Code analyses can be found in this comment by @unknown and this comment by @unknown.
Linked issues
is duplicated by 2
Attachments
Comments 7
thcrafter06 And I died in spectator mode after switching from survival to spectator mode right when I falled from too high in Survival
Can confirm on 1.18.2
Code analysis
Based on 1.18.2 yarn mappings
CreeperIgniteGoal
@Override
public void tick() {
if (this.target == null) {
this.creeper.setFuseSpeed(-1);
} else if (this.creeper.squaredDistanceTo(this.target) > 49.0) {
this.creeper.setFuseSpeed(-1);
} else if (!this.creeper.getVisibilityCache().canSee(this.target)) {
this.creeper.setFuseSpeed(-1);
} else {
this.creeper.setFuseSpeed(-1);
}
This function does not check if the target can take damage.
They were ignited, and continued to try to explode you