fix: clear PendingLoads on /land claim new to match vanilla's unconditional reset
This commit is contained in:
@@ -28,6 +28,7 @@ public class CommandListener : ICommandHookListener
|
||||
private static readonly Dictionary<string, SubHandler> claimSub = new()
|
||||
{
|
||||
["load"] = ClaimLoad,
|
||||
["new"] = ClaimNew,
|
||||
["save"] = ClaimSave,
|
||||
["cancel"] = ClaimCancel,
|
||||
};
|
||||
@@ -99,6 +100,14 @@ public class CommandListener : ICommandHookListener
|
||||
PendingLoads[caller.Player.PlayerUID] = (int)claimIndex;
|
||||
}
|
||||
|
||||
private static void ClaimNew(Caller caller, CmdArgs args)
|
||||
{
|
||||
if (caller.Player == null)
|
||||
return;
|
||||
|
||||
PendingLoads.Remove(caller.Player.PlayerUID);
|
||||
}
|
||||
|
||||
private static void ClaimCancel(Caller caller, CmdArgs args)
|
||||
{
|
||||
if (caller.Player == null)
|
||||
|
||||
Reference in New Issue
Block a user