Skip to content

Commit 95a466c

Browse files
Fix fireball mobgriefing override not working (#1726)
1 parent edbd95c commit 95a466c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purpur-server/minecraft-patches/sources/net/minecraft/server/level/ServerLevel.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
case NONE -> Explosion.BlockInteraction.KEEP;
202202
case BLOCK -> this.getDestroyType(GameRules.RULE_BLOCK_EXPLOSION_DROP_DECAY);
203203
- case MOB -> this.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING)
204-
+ case MOB -> (source instanceof net.minecraft.world.entity.projectile.LargeFireball && this.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING, this.purpurConfig.fireballsMobGriefingOverride)) || this.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) // Purpur - Add mobGriefing override to everything affected
204+
+ case MOB -> ((source instanceof net.minecraft.world.entity.projectile.LargeFireball) ? this.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING, this.purpurConfig.fireballsMobGriefingOverride) : this.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING)) // Purpur - Add mobGriefing override to everything affected
205205
? this.getDestroyType(GameRules.RULE_MOB_EXPLOSION_DROP_DECAY)
206206
: Explosion.BlockInteraction.KEEP;
207207
case TNT -> this.getDestroyType(GameRules.RULE_TNT_EXPLOSION_DROP_DECAY);

0 commit comments

Comments
 (0)