mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Fixed an incorrect if statement in Methods
It checked if a player HAD their bending toggled in order to resist Bloodbending.
This commit is contained in:
parent
2ff4484394
commit
973c39eec3
2 changed files with 1 additions and 2 deletions
|
@ -186,7 +186,7 @@ public class Methods {
|
||||||
if (AvatarState.isAvatarState(player))
|
if (AvatarState.isAvatarState(player))
|
||||||
if (isChiBlocked(player.getName()))
|
if (isChiBlocked(player.getName()))
|
||||||
return true;
|
return true;
|
||||||
if (canBend(player.getName(), "Bloodbending") && Methods.getBendingPlayer(player.getName()).isToggled)
|
if (canBend(player.getName(), "Bloodbending") && !Methods.getBendingPlayer(player.getName()).isToggled)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,6 @@ public class PKListener implements Listener {
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onHorizontalCollision(HorizontalVelocityChangeEvent e)
|
public void onHorizontalCollision(HorizontalVelocityChangeEvent e)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(e.getEntity() instanceof LivingEntity)
|
if(e.getEntity() instanceof LivingEntity)
|
||||||
{
|
{
|
||||||
Methods.damageEntity(e.getInstigator(), e.getEntity(), e.getDifference().length() * 2);
|
Methods.damageEntity(e.getInstigator(), e.getEntity(), e.getDifference().length() * 2);
|
||||||
|
|
Loading…
Reference in a new issue