From 33961be687902fff7664d887ba386f026117c424 Mon Sep 17 00:00:00 2001 From: PLASMAchicken Date: Mon, 6 Dec 2021 01:13:04 +0100 Subject: [PATCH] Fix /home falling through floor bug --- src/BPEssentials/Commands/Home/Home.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/BPEssentials/Commands/Home/Home.cs b/src/BPEssentials/Commands/Home/Home.cs index bc7402d0..d7b957b1 100644 --- a/src/BPEssentials/Commands/Home/Home.cs +++ b/src/BPEssentials/Commands/Home/Home.cs @@ -25,13 +25,8 @@ public void Invoke(ShPlayer player, int homeNumber = 1) player.TS("no_appartments"); return; } - var offset = new Vector3(-1, 0, -1); var apartment = apartments[Math.Max(0, --homeNumber)]; - if (apartment.GetRotation.y < 0.9) - { - offset = new Vector3(1, 0, 2); - } - player.GetExtendedPlayer().ResetAndSavePosition(apartment.GetPosition + offset, apartment.GetRotation, apartment.GetPlaceIndex); + player.GetExtendedPlayer().ResetAndSavePosition(apartment.spawnPoint.position, apartment.spawnPoint.rotation, apartment.GetPlaceIndex); } } }