Skip to content

Commit 33961be

Browse files
committed
Fix /home falling through floor bug
1 parent 90821ce commit 33961be

File tree

1 file changed

+1
-6
lines changed
  • src/BPEssentials/Commands/Home

1 file changed

+1
-6
lines changed

src/BPEssentials/Commands/Home/Home.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ public void Invoke(ShPlayer player, int homeNumber = 1)
2525
player.TS("no_appartments");
2626
return;
2727
}
28-
var offset = new Vector3(-1, 0, -1);
2928
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);
29+
player.GetExtendedPlayer().ResetAndSavePosition(apartment.spawnPoint.position, apartment.spawnPoint.rotation, apartment.GetPlaceIndex);
3530
}
3631
}
3732
}

0 commit comments

Comments
 (0)