generated from AriasCreations/vsmodtemplate
Make max distance arg optional
This commit is contained in:
parent
a9150cf322
commit
9f7edc64c3
3 changed files with 4 additions and 3 deletions
|
@ -57,6 +57,7 @@ namespace AriasServerUtils
|
|||
int maxDistance = ServerUtilities.config.MaxRTPBlockDistance;
|
||||
if (args[0] is int ix)
|
||||
{
|
||||
if (ix == -1) ix = maxDistance;
|
||||
if (ix > maxDistance)
|
||||
{
|
||||
ServerUtilities.SendMessageTo(isp, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-capped", ix, maxDistance));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue