mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix yaw on player spawn (#6409)
This commit is contained in:
parent
f9143cf9ec
commit
5da877975c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ if (event.getLocation() != null) {
|
+ if (event.getLocation() != null) {
|
||||||
+ dimension = event.getLocation().getWorld() != null ? ((CraftWorld) event.getLocation().getWorld()).getHandle().dimension() : dimension;
|
+ dimension = event.getLocation().getWorld() != null ? ((CraftWorld) event.getLocation().getWorld()).getHandle().dimension() : dimension;
|
||||||
+ pos = net.minecraft.server.MCUtil.toBlockPosition(event.getLocation());
|
+ pos = net.minecraft.server.MCUtil.toBlockPosition(event.getLocation());
|
||||||
+ angle = (float) event.getLocation().getY();
|
+ angle = (float) event.getLocation().getYaw();
|
||||||
+ spawnPointSet = event.isForced();
|
+ spawnPointSet = event.isForced();
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue