Fixed WaterManipulation & IceBlast not changing plants to air once used as a source (#518)

This commit is contained in:
Archie 2016-07-21 21:08:51 +01:00 committed by OmniCypher
parent 2c076b50da
commit 3d77824286
2 changed files with 3 additions and 2 deletions

View file

@ -260,12 +260,12 @@ public class IceSpikeBlast extends IceAbility {
settingUp = true;
prepared = false;
/*if (isPlant(sourceBlock)) {
if (isPlant(sourceBlock)) {
new PlantRegrowth(player, sourceBlock);
sourceBlock.setType(Material.AIR);
}
originalSource = new TempBlock(sourceBlock, Material.AIR, data);*/
}
public static void activate(Player player) {

View file

@ -153,6 +153,7 @@ public class WaterManipulation extends WaterAbility {
if (isPlant(sourceBlock)) {
new PlantRegrowth(player, sourceBlock);
sourceBlock.setType(Material.AIR);
} else if (!isIce(sourceBlock)) {
addWater(sourceBlock);
}