You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2022. It is now read-only.
Some plugins might occasionally set a players velocity to something like (x, y, NaN) due to invalid mathematic operations or to held a player mid air.
If applying such a velocity vector while the player is sneaking, the server crashes.
@EventHandler
public void onInteract(PlayerInteractEvent event) {
final Player player = event.getPlayer();
player.setSneaking(true);
player.setVelocity(new Vector(Double.NaN, 0, 0));
}
Observed Behavior
Some plugins might occasionally set a players velocity to something like (x, y, NaN) due to invalid mathematic operations or to held a player mid air.
If applying such a velocity vector while the player is sneaking, the server crashes.
Expected Behavior
Not to crash.
Steps To Reproduce
Plugin List
ViaVersion (might be important here)
Server Version
74ed0ea
Other
No response
Agreements
The text was updated successfully, but these errors were encountered: