mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fixed charged fireblast not dealing damage when FireGriefing was off. (#524)
Sorry I created this issue with my last PR.
This commit is contained in:
parent
3150b34487
commit
533d713774
1 changed files with 2 additions and 2 deletions
|
@ -151,14 +151,14 @@ public class FireBlastCharged extends FireAbility {
|
|||
public void explode() {
|
||||
boolean explode = true;
|
||||
for (Block block : GeneralMethods.getBlocksAroundPoint(location, 3)) {
|
||||
if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation()) || !canFireGrief()) {
|
||||
if (GeneralMethods.isRegionProtectedFromBuild(this, block.getLocation())) {
|
||||
explode = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (explode) {
|
||||
if (canDamageBlocks && explosionRadius > 0) {
|
||||
if (canDamageBlocks && explosionRadius > 0 && canFireGrief()) {
|
||||
explosion = player.getWorld().spawn(location, TNTPrimed.class);
|
||||
explosion.setFuseTicks(0);
|
||||
double yield = explosionRadius;
|
||||
|
|
Loading…
Reference in a new issue