private static void Postfix(ProcGen.Worlds __instance) { foreach (ProcGen.World world in __instance.worldCache.Values) { Traverse.Create(world).Property("worldsize").SetValue( new Vector2I((int)(256 / xscale), (int)(384 / yscale))); } }
private static void Postfix(ProcGen.Worlds __instance) { foreach (ProcGen.World world in __instance.worldCache.Values) { Traverse.Create(world).Property("worldsize").SetValue( new Vector2I((int)SizeNotIncludedOptions.Instance.XSize(), (int)SizeNotIncludedOptions.Instance.YSize())); } }