mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:54:56 +00:00
Fix glitch in clownfish smacker.
This commit is contained in:
parent
54be4f7e88
commit
73214165a5
1 changed files with 5 additions and 5 deletions
|
@ -299,8 +299,8 @@ public class TFM_PlayerListener implements Listener
|
|||
{
|
||||
if (targetPosVec.distanceSquared(playerLocVec) < (RADIUS_HIT * RADIUS_HIT))
|
||||
{
|
||||
player.setFlying(false);
|
||||
player.setVelocity(targetPosVec.subtract(playerLocVec).normalize().multiply(STRENGTH));
|
||||
target.setFlying(false);
|
||||
target.setVelocity(targetPosVec.subtract(playerLocVec).normalize().multiply(STRENGTH));
|
||||
didHit = true;
|
||||
}
|
||||
}
|
||||
|
@ -333,10 +333,10 @@ public class TFM_PlayerListener implements Listener
|
|||
|
||||
player.getInventory().getItemInHand().setType(Material.POTATO_ITEM);
|
||||
}
|
||||
}
|
||||
|
||||
event.setCancelled(true);
|
||||
break;
|
||||
event.setCancelled(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue