Make Entities.Spawn bot public

This commit is contained in:
UnknownShadow200 2019-08-14 20:10:49 +10:00
parent 04aa2cd41a
commit 531c8969e0
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ namespace MCGalaxy.Commands {
string action, string defUnit) {
try {
span = input.ParseShort(defUnit);
// Typically span is added to current time, so ensure span isn't too big
// Typically span gets added to current time, so check span isn't too big here
DateTime.UtcNow.Add(span).AddYears(1);
return true;
} catch (OverflowException) {

View File

@ -120,7 +120,7 @@ namespace MCGalaxy {
foreach (PlayerBot b in botsList) { Despawn(p, b); }
}
internal static void Spawn(Player dst, PlayerBot b) {
public static void Spawn(Player dst, PlayerBot b) {
string name = Chat.Format(b.color + b.DisplayName, dst, true, false);
if (b.DisplayName.CaselessEq("empty")) name = "";
string skin = Chat.Format(b.SkinName, dst, true, false);

View File

@ -48,7 +48,7 @@ namespace MCGalaxy.Network {
/// <summary> Gets the data to be sent for a heartbeat. </summary>
public abstract string GetHeartbeatData();
/// <summary> Called when a request is about to be send to the web server. </summary>
/// <summary> Called when a request is about to be sent to the web server. </summary>
public abstract void OnRequest(HttpWebRequest request);
/// <summary> Called when a response is received from the web server. </summary>