We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90821ce commit 33961beCopy full SHA for 33961be
src/BPEssentials/Commands/Home/Home.cs
@@ -25,13 +25,8 @@ public void Invoke(ShPlayer player, int homeNumber = 1)
25
player.TS("no_appartments");
26
return;
27
}
28
- var offset = new Vector3(-1, 0, -1);
29
var apartment = apartments[Math.Max(0, --homeNumber)];
30
- if (apartment.GetRotation.y < 0.9)
31
- {
32
- offset = new Vector3(1, 0, 2);
33
- }
34
- player.GetExtendedPlayer().ResetAndSavePosition(apartment.GetPosition + offset, apartment.GetRotation, apartment.GetPlaceIndex);
+ player.GetExtendedPlayer().ResetAndSavePosition(apartment.spawnPoint.position, apartment.spawnPoint.rotation, apartment.GetPlaceIndex);
35
36
37
0 commit comments