Permalink
Browse files

Change preciserespawn to be based on noclip in

ClassicalSharp
  • Loading branch information...
Goodlyay committed Jan 7, 2019
1 parent 1525434 commit ffa81f8da35545694ae99b44df41634e28d29227
Showing with 3 additions and 4 deletions.
  1. +3 −4 ClassicalSharp/Entities/LocalPlayer.cs
@@ -180,7 +180,7 @@ public class LocalPlayer : Player, IGameComponent {
AABB bb;

// Spawn player at highest valid position
if (Hacks.CanAnyHacks) {
if (Hacks.CanNoclip) {
if (game.World.IsValidPos(P)) {
bb = AABB.Make(spawn, Size);
for (int y = P.Y; y <= game.World.Height; y++) {
@@ -220,11 +220,10 @@ public class LocalPlayer : Player, IGameComponent {

bool HandleSetSpawn() {
if (Hacks.CanRespawn) {
if (!Hacks.CanAnyHacks && !onGround) {
game.Chat.Add("&cCannot set spawn mid-air while hacks are disabled");
if (!Hacks.CanNoclip && !onGround) {
return false;
}
if (!Hacks.CanAnyHacks) {
if (!Hacks.CanNoclip) {
Spawn.X = Position.X;
Spawn.Y = Position.Y;
Spawn.Z = Position.Z;

0 comments on commit ffa81f8

Please sign in to comment.