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:
1 parent
44b2eab134
commit
0fda67f73e
1 file changed
+2
-1
@@ -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