fix: ghast fire not counting as mob griefing

this was fixed around TU40~ but was never included in the changelogs
This commit is contained in:
str1k3r committed 2026-09-07 09:51:38 -04:00
1 parent 44b2eab134
commit 0fda67f73e
1 file changed
+2 -1
+2 -1
View File
@@ -29,7 +29,8 @@ void LargeFireball::onHit(HitResult *res)
res->entity->hurt(damageSource, 6);
delete damageSource;
}
level->explode(nullptr, x, y, z, explosionPower, true, level->getGameRules()->getBoolean(GameRules::RULE_MOBGRIEFING));
bool IsMobGriefing = level->getGameRules()->getBoolean(GameRules::RULE_MOBGRIEFING);
level->explode(nullptr, x, y, z, explosionPower, IsMobGriefing);
remove();
}
}