diff --git a/TSOClient/tso.simantics/Engine/VMThread.cs b/TSOClient/tso.simantics/Engine/VMThread.cs index 423bfe68a..dfefae21f 100644 --- a/TSOClient/tso.simantics/Engine/VMThread.cs +++ b/TSOClient/tso.simantics/Engine/VMThread.cs @@ -971,7 +971,7 @@ public List CheckAction(VMQueuedAction action, bool auto = if (avatar.IsCat && (action.Flags & TTABFlags.AllowCats) == 0) return null; if (avatar.IsDog && (action.Flags & TTABFlags.AllowDogs) == 0) return null; } - else if (avatar.IsPet && avatar.AvatarState.Permissions < VMTSOAvatarPermissions.Admin) return null; //not allowed + else if (avatar.IsPet && (avatar.AvatarState.Permissions < VMTSOAvatarPermissions.Admin || auto)) return null; //not allowed bool isActionGlobal = action.ActionRoutine.ID < 4096; // Ignore global actions for disabling interactions due to repair. bool isRepair = (action.Flags & TTABFlags.TSOIsRepair) > 0; diff --git a/TSOClient/tso.simantics/Entities/VMAvatar.cs b/TSOClient/tso.simantics/Entities/VMAvatar.cs index d5ade076d..aa91c74ba 100644 --- a/TSOClient/tso.simantics/Entities/VMAvatar.cs +++ b/TSOClient/tso.simantics/Entities/VMAvatar.cs @@ -640,7 +640,6 @@ public void UserLeaveLot() } var tree = GetRoutineWithOwner(LEAVE_LOT_TREE, Thread.Context); - var routine = tree.routine; var qaction = GetAction(LEAVE_LOT_ACTION, this, Thread.Context, false); if (qaction != null)