mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
fix earthsmash
This commit is contained in:
parent
4c44e51237
commit
bb912f0423
|
@ -1,9 +1,13 @@
|
||||||
package com.projectkorra.projectkorra.earthbending;
|
package com.projectkorra.projectkorra.earthbending;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import com.projectkorra.projectkorra.BendingPlayer;
|
||||||
import java.util.List;
|
import com.projectkorra.projectkorra.GeneralMethods;
|
||||||
import java.util.Random;
|
import com.projectkorra.projectkorra.ability.EarthAbility;
|
||||||
|
import com.projectkorra.projectkorra.attribute.Attribute;
|
||||||
|
import com.projectkorra.projectkorra.util.ClickType;
|
||||||
|
import com.projectkorra.projectkorra.util.DamageHandler;
|
||||||
|
import com.projectkorra.projectkorra.util.ParticleEffect;
|
||||||
|
import com.projectkorra.projectkorra.util.TempBlock;
|
||||||
import org.bukkit.Effect;
|
import org.bukkit.Effect;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -14,14 +18,9 @@ import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import com.projectkorra.projectkorra.BendingPlayer;
|
import java.util.ArrayList;
|
||||||
import com.projectkorra.projectkorra.GeneralMethods;
|
import java.util.List;
|
||||||
import com.projectkorra.projectkorra.ability.EarthAbility;
|
import java.util.Random;
|
||||||
import com.projectkorra.projectkorra.attribute.Attribute;
|
|
||||||
import com.projectkorra.projectkorra.util.ClickType;
|
|
||||||
import com.projectkorra.projectkorra.util.DamageHandler;
|
|
||||||
import com.projectkorra.projectkorra.util.ParticleEffect;
|
|
||||||
import com.projectkorra.projectkorra.util.TempBlock;
|
|
||||||
|
|
||||||
public class EarthSmash extends EarthAbility {
|
public class EarthSmash extends EarthAbility {
|
||||||
|
|
||||||
|
@ -230,7 +229,6 @@ public class EarthSmash extends EarthAbility {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.draw();
|
this.draw();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
@ -537,7 +535,7 @@ public class EarthSmash extends EarthAbility {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<Block> blocks = GeneralMethods.getBlocksAroundPoint(GeneralMethods.getTargetedLocation(player, this.grabRange, getTransparentMaterials()), 1);
|
final List<Block> blocks = GeneralMethods.getBlocksAroundPoint(GeneralMethods.getTargetedLocation(player, this.grabRange, false, getTransparentMaterials()), 1);
|
||||||
for (final EarthSmash smash : getAbilities(EarthSmash.class)) {
|
for (final EarthSmash smash : getAbilities(EarthSmash.class)) {
|
||||||
if (reqState == null || smash.state == reqState) {
|
if (reqState == null || smash.state == reqState) {
|
||||||
for (final Block block : blocks) {
|
for (final Block block : blocks) {
|
||||||
|
|
Loading…
Reference in a new issue