Fix NPE in IceSpikePillar

This commit is contained in:
Christopher Martin 2017-01-21 23:14:33 -08:00 committed by GitHub
parent 885c59ef17
commit d254e9d491

View file

@ -80,6 +80,9 @@ public class IceSpikePillar extends IceAbility {
this.source_block = tempTestingBlock;
} else {
this.source_block = WaterAbility.getIceSourceBlock(player, range);
if (this.source_block == null) {
return;
}
}
origin = source_block.getLocation();
location = origin.clone();