mirror of
https://github.com/edgegamers/Gangs.git
synced 2025-12-06 04:42:56 -08:00
Fix test issues
This commit is contained in:
@@ -44,11 +44,9 @@ public class CommandInfoWrapper(PlayerWrapper? executor, int offset = 0,
|
||||
return;
|
||||
}
|
||||
|
||||
Server.NextFrame(() => {
|
||||
if (CallingContext == CommandCallingContext.Console)
|
||||
CallingPlayer.PrintToConsole(message);
|
||||
else
|
||||
CallingPlayer.PrintToChat(message);
|
||||
});
|
||||
if (CallingContext == CommandCallingContext.Console)
|
||||
CallingPlayer.PrintToConsole(message);
|
||||
else
|
||||
CallingPlayer.PrintToChat(message);
|
||||
}
|
||||
}
|
||||
@@ -114,7 +114,9 @@ public class PlayerWrapper {
|
||||
return;
|
||||
}
|
||||
|
||||
Server.NextFrame(() => Player.PrintToChat(message));
|
||||
Server.NextFrame(() => {
|
||||
if (Player.IsValid) Player.PrintToChat(message);
|
||||
});
|
||||
}
|
||||
|
||||
public void PrintToConsole(string message) {
|
||||
@@ -124,6 +126,8 @@ public class PlayerWrapper {
|
||||
return;
|
||||
}
|
||||
|
||||
Server.NextFrame(() => Player.PrintToConsole(message));
|
||||
Server.NextFrame(() => {
|
||||
if (Player.IsValid) Player.PrintToConsole(message);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user