20 lines
508 B
C#
20 lines
508 B
C#
using System.Collections;
|
|
|
|
namespace Harmony.BiomeSpawningFromXmlPatches
|
|
{
|
|
[HarmonyPatch(typeof(BiomeSpawningFromXml))]
|
|
[HarmonyPatch("Load")]
|
|
public class LoadPatch
|
|
{
|
|
private static bool Prefix(BiomeSpawningFromXml __instance, XmlFile _xmlFile)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
private static IEnumerator Postfix(IEnumerator __result, XmlFile _xmlFile)
|
|
{
|
|
yield return (object)RebirthUtilities.LoadSpawningXML(_xmlFile);
|
|
}
|
|
}
|
|
}
|