mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fixes part of PlantArmor and EarthRevert
This commit is contained in:
parent
afa83c1086
commit
e155f1712f
2 changed files with 3 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue