Adds BufferReader and BufferWriter. Updates UOP handling. (#101)

This commit is contained in:
Kamron Batman 2020-04-12 21:33:24 -07:00 • committed by GitHub
parent 2c0d97cd36
commit 038c3be258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 2458 additions and 2185 deletions

View file

@ -96,7 +96,7 @@ namespace Server.Commands
{
var paramList = c.GetParameters();
object[] args = paramList.Length == 0 ? null : new object[paramList.Length];
Array.Fill(args, Type.Missing);
if (args != null) Array.Fill(args, Type.Missing);
try
{
from.SendMessage("Duping {0}...", m_Amount);

View file

@ -5,7 +5,7 @@ using Server.Targeting;
namespace Server.Commands
{
public class VisibilityList
public static class VisibilityList
{
public static void Initialize()
{
@ -16,9 +16,9 @@ namespace Server.Commands
CommandSystem.Register("VisClear", AccessLevel.Counselor, VisClear_OnCommand);
}
public static void OnLogin(LoginEventArgs e)
public static void OnLogin(Mobile m)
{
if (e.Mobile is PlayerMobile pm) pm.VisibilityList.Clear();
(m as PlayerMobile)?.VisibilityList.Clear();
}
[Usage("Vis")]
@ -138,4 +138,4 @@ namespace Server.Commands
}
}
}
}
}