Skip to content

Commit 19732ff

Browse files
committed
Fix compatibility issues with Webfishing+
1 parent 237e447 commit 19732ff

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

NeoQOLPack/Mod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public Mod(IModInterface modInterface) {
3131
modInterface.RegisterScriptMod(new InventoryPactcher(this));
3232
modInterface.RegisterScriptMod(new ItemSelectPatcher(this));
3333
modInterface.RegisterScriptMod(new PlayerPatcher(this));
34-
// modInterface.RegisterScriptMod(new PlayerTitlePatcher());
3534
modInterface.RegisterScriptMod(new ShopPatcher());
3635
modInterface.RegisterScriptMod(new PlayerHudPatcher(this));
3736
modInterface.RegisterScriptMod(new ShopButtonPatcher(this));

NeoQOLPack/Mods/MenuPatcher.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> tokens)
6868
if (extendsWaiter.Check(token))
6969
{
7070
yield return token;
71+
if (mod.modInterface.LoadedMods.Contains("WebfishingPlus")) continue;
7172
yield return new Token(TokenType.PrVar);
7273
yield return new IdentifierToken("offline_selected");
7374
yield return new Token(TokenType.OpAssign);
@@ -123,6 +124,7 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> tokens)
123124
yield return new ConstantToken(new StringVariant(version));
124125
yield return new Token(TokenType.ParenthesisClose);
125126
yield return new Token(TokenType.Newline, 1);
127+
if (mod.modInterface.LoadedMods.Contains("WebfishingPlus")) continue;
126128
yield return new Token(TokenType.Dollar);
127129
yield return new ConstantToken(new StringVariant("%serv_options"));
128130
yield return new Token(TokenType.Period);
@@ -139,12 +141,13 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> tokens)
139141
else if (buttonWaiter.Check(token))
140142
{
141143
yield return token;
144+
if (mod.modInterface.LoadedMods.Contains("WebfishingPlus")) continue;
142145
yield return new Token(TokenType.ParenthesisOpen);
143146
}
144147
else if (disabledWaiter.Check(token))
145148
{
146149
yield return token;
147-
150+
if (mod.modInterface.LoadedMods.Contains("WebfishingPlus")) continue;
148151
yield return new Token(TokenType.ParenthesisClose);
149152
yield return new Token(TokenType.OpAnd);
150153
yield return new Token(TokenType.OpNot);

NeoQOLPack/mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NeoQOLPack",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "A collection of Quality of Life patches",
55
"author": "neomoth"
66
}

mod.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)