fixed bad guid

fixed error with .lethalbundles being modded moons
This commit is contained in:
LadyAliceMargatroid 2024-08-02 11:23:38 -07:00
parent af4cda160c
commit c7f604494e
3 changed files with 6 additions and 4 deletions

View File

@ -20,10 +20,12 @@ namespace DunGenPlus {
} }
static void AutoAddLethalBundle(AssetBundle assetBundle){ static void AutoAddLethalBundle(AssetBundle assetBundle){
if (assetBundle.isStreamedSceneAssetBundle) return;
var extenders = assetBundle.LoadAllAssets<DunGenExtender>(); var extenders = assetBundle.LoadAllAssets<DunGenExtender>();
var content = assetBundle.LoadAllAssets<ExtendedContent>(); var content = assetBundle.LoadAllAssets<ExtendedContent>();
if (content.Length == 0) { if (content.Length == 0 && extenders.Length > 0) {
Plugin.logger.LogWarning($".lethalbundle does not contain any ExtendedContent. Unless you are manually creating and adding your ExtendedDungeonFlow with code, the DunGenExtender will probably not work."); Plugin.logger.LogWarning($".lethalbundle does not contain any ExtendedContent. Unless you are manually creating and adding your ExtendedDungeonFlow with code, the DunGenExtender will probably not work.");
} }

View File

@ -125,6 +125,6 @@
<ItemGroup /> <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "C:\Users\Jose Garcia\AppData\Roaming\r2modmanPlus-local\LethalCompany\profiles\SDM Debug\BepInEx\plugins\Unknown-DunGenPlus\$(TargetName).dll"</PostBuildEvent> <PostBuildEvent>copy "$(TargetPath)" "C:\Users\Jose Garcia\AppData\Roaming\r2modmanPlus-local\LethalCompany\profiles\SDM Debug\BepInEx\plugins\Alice-DungeonGenerationPlus\$(TargetName).dll"</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -22,9 +22,9 @@ namespace DunGenPlus {
[BepInProcess("Lethal Company.exe")] [BepInProcess("Lethal Company.exe")]
public class Plugin : BaseUnityPlugin { public class Plugin : BaseUnityPlugin {
internal const string modGUID = "dev.ladyalice"; internal const string modGUID = "dev.ladyalice.dungenplus";
private const string modName = "Dungeon Generation Plus"; private const string modName = "Dungeon Generation Plus";
private const string modVersion = "1.0.0"; private const string modVersion = "1.0.2";
internal readonly Harmony Harmony = new Harmony(modGUID); internal readonly Harmony Harmony = new Harmony(modGUID);