mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fix NPE in IceSpikePillar
This commit is contained in:
parent
885c59ef17
commit
d254e9d491
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ public class IceSpikePillar extends IceAbility {
|
||||||
this.source_block = tempTestingBlock;
|
this.source_block = tempTestingBlock;
|
||||||
} else {
|
} else {
|
||||||
this.source_block = WaterAbility.getIceSourceBlock(player, range);
|
this.source_block = WaterAbility.getIceSourceBlock(player, range);
|
||||||
|
if (this.source_block == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
origin = source_block.getLocation();
|
origin = source_block.getLocation();
|
||||||
location = origin.clone();
|
location = origin.clone();
|
||||||
|
|
Loading…
Reference in a new issue