mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Merge pull request #457 from OmniCypher-/master
Fixes part of PlantArmor and EarthRevert
This commit is contained in:
commit
6dcb920c90
2 changed files with 3 additions and 2 deletions
|
@ -252,6 +252,7 @@ public abstract class EarthAbility extends ElementalAbility {
|
||||||
info = new Information();
|
info = new Information();
|
||||||
|
|
||||||
info.setBlock(block);
|
info.setBlock(block);
|
||||||
|
info.setState(block.getState());
|
||||||
info.setData(block.getData());
|
info.setData(block.getData());
|
||||||
}
|
}
|
||||||
block.setType(Material.AIR);
|
block.setType(Material.AIR);
|
||||||
|
@ -536,7 +537,7 @@ public abstract class EarthAbility extends ElementalAbility {
|
||||||
}
|
}
|
||||||
|
|
||||||
Information info = TEMP_AIR_LOCATIONS.get(i);
|
Information info = TEMP_AIR_LOCATIONS.get(i);
|
||||||
Block block = info.getBlock();
|
Block block = info.getState().getBlock();
|
||||||
|
|
||||||
if (block.getType() != Material.AIR && !block.isLiquid()) {
|
if (block.getType() != Material.AIR && !block.isLiquid()) {
|
||||||
if (force || !MOVED_EARTH.containsKey(block)) {
|
if (force || !MOVED_EARTH.containsKey(block)) {
|
||||||
|
|
|
@ -249,7 +249,7 @@ public abstract class WaterAbility extends ElementalAbility {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isLeaves(Material material) {
|
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) {
|
public static boolean isSnow(Block block) {
|
||||||
|
|
Loading…
Reference in a new issue