Fix creeper not having loot (#1790)

This commit is contained in:
Amine Kacimi
2026-06-21 22:00:01 +01:00
committed by GitHub
parent f7cad79b22
commit 47a714c82c
4 changed files with 10 additions and 9 deletions

View File

@@ -8,7 +8,7 @@
public Creeper(final EntityType<? extends Creeper> type, final Level level) {
super(type, level);
@@ -159,6 +_,26 @@
@@ -159,6 +_,27 @@
return false; // CraftBukkit
}
@@ -29,6 +29,7 @@
+ if (!this.exploding && this.level().purpurConfig.creeperExplodeWhenKilled && source.getEntity() instanceof net.minecraft.server.level.ServerPlayer) {
+ this.explodeCreeper();
+ }
+ super.dropAllDeathLoot(level, source);
+ }
+ // Purpur end - Config to make Creepers explode on death
+