Veilheim/Map/MapHooks.cs
/// <summary>
///     CLIENT SIDE: Creates a <see cref="PortalSelectionGUI" /> when interacting with a portal
/// </summary>
CLIENT SIDE: Creates a  when interacting with a portal
CLIENT SIDE : Creates a when interacting with a portal
private static bool ShowPortalSelection(On.TeleportWorld.orig_Interact orig, TeleportWorld self, Humanoid human, bool hold)
        {
            bool result = orig(self, human, hold);
            if (ZNet.instance.IsServerInstance())
            {
                return result;
            }
            if (!ConfigUtil.Get<bool>("Map","showPortalSelection"))
            {
                return result;
            }
            if (!PrivateArea.CheckAccess(self.transform.position) || hold)
            {
                return result;
            }
            PortalSelectionGUI.OpenPortalSelection();
            return result;
        }
private static bool ShowPortalSelection ( On . TeleportWorld . orig_Interact orig , TeleportWorld self , Humanoid human , bool hold ) { bool result = orig ( self , human , hold ) ; if ( ZNet . instance . IsServerInstance ( ) ) { return result ; } if ( ! ConfigUtil . Get < bool > ( " " , " " ) ) { return result ; } if ( ! PrivateArea . CheckAccess ( self . transform . position ) || hold ) { return result ; } PortalSelectionGUI . OpenPortalSelection ( ) ; return result ; }
CLIENT SIDE: Creates a  when interacting with a portal
CLIENT SIDE : Creates a when interacting with a portal
// only act on clients // must be enabled // i like my personal space
orig
On.TeleportWorld.orig_Interact
self
TeleportWorld
human
Humanoid
hold
bool