mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
Fixes part of PlantArmor and EarthRevert
This commit is contained in:
parent
afa83c1086
commit
e155f1712f
|
@ -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