mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +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 (isChiBlocked(player.getName()))
|
||||
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 true;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,6 @@ public class PKListener implements Listener {
|
|||
@EventHandler
|
||||
public void onHorizontalCollision(HorizontalVelocityChangeEvent e)
|
||||
{
|
||||
|
||||
if(e.getEntity() instanceof LivingEntity)
|
||||
{
|
||||
Methods.damageEntity(e.getInstigator(), e.getEntity(), e.getDifference().length() * 2);
|
||||
|
|
Loading…
Reference in a new issue