Fixes part of PlantArmor and EarthRevert

This commit is contained in:
OmniCypher 2016-03-26 18:00:25 -07:00
parent afa83c1086
commit e155f1712f
2 changed files with 3 additions and 2 deletions

View file

@ -252,6 +252,7 @@ public abstract class EarthAbility extends ElementalAbility {
info = new Information();
info.setBlock(block);
info.setState(block.getState());
info.setData(block.getData());
}
block.setType(Material.AIR);
@ -536,7 +537,7 @@ public abstract class EarthAbility extends ElementalAbility {
}
Information info = TEMP_AIR_LOCATIONS.get(i);
Block block = info.getBlock();
Block block = info.getState().getBlock();
if (block.getType() != Material.AIR && !block.isLiquid()) {
if (force || !MOVED_EARTH.containsKey(block)) {

View file

@ -249,7 +249,7 @@ public abstract class WaterAbility extends ElementalAbility {
}
public static boolean isLeaves(Material material) {
return material == Material.LEAVES || material == Material.LEAVES;
return material == Material.LEAVES || material == Material.LEAVES_2;
}
public static boolean isSnow(Block block) {