Skip to content

Instantly share code, notes, and snippets.

View XtraCube's full-sized avatar
💭
3d printing

XtraCube XtraCube

💭
3d printing
View GitHub Profile
@XtraCube
XtraCube / C.cs
Last active May 13, 2021 01:17
tiny region API
/*CC0*/using System.Linq;using S=ServerManager;[HarmonyLib.HarmonyPatch(typeof(S),"LoadServers")]class C{static System.Collections.Generic.List<IRegionInfo>R=S.DefaultRegions.ToList();static void Prefix()=>S.DefaultRegions=R.ToArray();public static void A(string N,string I,ushort P)=>R.Add(new DnsRegionInfo(I, N, (StringNames)1003, I, P).Duplicate());}