mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-06-23 02:37:47 +02:00
Fix creeper not having loot (#1790)
This commit is contained in:
@@ -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
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user