mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
EarthGrab fixes (#712)
This commit is contained in:
parent
047224a4cb
commit
4743fdc829
1 changed files with 8 additions and 1 deletions
|
@ -50,6 +50,8 @@ public class EarthGrab extends EarthAbility {
|
||||||
|
|
||||||
if (!bPlayer.canBend(this)) {
|
if (!bPlayer.canBend(this)) {
|
||||||
return;
|
return;
|
||||||
|
} else if (player.getLocation().clone().add(0, -1, 0).getBlock().getType().isTransparent()) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bPlayer.isAvatarState()) {
|
if (bPlayer.isAvatarState()) {
|
||||||
|
@ -217,6 +219,11 @@ public class EarthGrab extends EarthAbility {
|
||||||
remove();
|
remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (blockType == null) {
|
||||||
|
return;
|
||||||
|
} else if (blockByte == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ParticleEffect.BLOCK_CRACK.display((ParticleEffect.ParticleData) new ParticleEffect.BlockData(blockType, blockByte), 1F, 0.1F, 1F, 0.1F, 100, loc.add(0, -1, 0), 500);
|
ParticleEffect.BLOCK_CRACK.display((ParticleEffect.ParticleData) new ParticleEffect.BlockData(blockType, blockByte), 1F, 0.1F, 1F, 0.1F, 100, loc.add(0, -1, 0), 500);
|
||||||
|
|
||||||
for (Entity e : GeneralMethods.getEntitiesAroundPoint(loc, 2.5)) {
|
for (Entity e : GeneralMethods.getEntitiesAroundPoint(loc, 2.5)) {
|
||||||
|
|
Loading…
Reference in a new issue