mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Fix glitch in clownfish smacker.
This commit is contained in:
parent
54be4f7e88
commit
73214165a5
@ -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 New Issue
Block a user