AutomapMod ownMod = ownApi.ModLoader.GetModSystem<AutomapMod>( );
return ownMod.Mod;
}
-
+
+
+ public static bool EndsWith(this AssetLocation asset, string domain, string endPath)
+ {
+ return asset.Domain.Equals(domain,StringComparison.InvariantCultureIgnoreCase) && asset.Path.EndsWith(endPath, StringComparison.InvariantCultureIgnoreCase);
+ }
}
}