mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fixes the whitescreen issue some people were having.
This commit is contained in:
1 parent
d156fcf9c8
commit
0740e0c777
2 files changed
+21
No files matched your search
@@ -356,6 +356,15 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
d2 = to.getZ();
|
||||
f = to.getYaw();
|
||||
f1 = to.getPitch();
|
||||
|
||||
// TODO: make sure this is the best way to address this.
|
||||
if (Float.isNaN(f)) {
|
||||
f = 0;
|
||||
}
|
||||
|
||||
if (Float.isNaN(f1)) {
|
||||
f1 = 0;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
this.m = false;
|
||||
|
||||
Reference in new issue
Block a user