forked from cafeberry/cafeberry
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user