From 5da877975c77feb0838875ee0eb512524f75202a Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Mon, 16 Aug 2021 14:46:25 -0700 Subject: [PATCH] Fix yaw on player spawn (#6409) --- patches/server/Add-PlayerSetSpawnEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Add-PlayerSetSpawnEvent.patch b/patches/server/Add-PlayerSetSpawnEvent.patch index 56c68e59b7..b5eb7a0f64 100644 --- a/patches/server/Add-PlayerSetSpawnEvent.patch +++ b/patches/server/Add-PlayerSetSpawnEvent.patch @@ -55,7 +55,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + if (event.getLocation() != null) { + dimension = event.getLocation().getWorld() != null ? ((CraftWorld) event.getLocation().getWorld()).getHandle().dimension() : dimension; + pos = net.minecraft.server.MCUtil.toBlockPosition(event.getLocation()); -+ angle = (float) event.getLocation().getY(); ++ angle = (float) event.getLocation().getYaw(); + spawnPointSet = event.isForced(); + // Paper end