Fixed a regression in the Witch's House where the fountain could not be searched after reading the book

This commit is contained in:
John Liebentritt
2023-05-02 02:08:57 +00:00
committed by Ryan
parent b43d84295c
commit a9a6c07c1a
2 changed files with 3 additions and 4 deletions
@@ -121,6 +121,9 @@ class WitchesDiaryBook : InteractionListener {
)
private fun display(player:Player, pageNum: Int, buttonID: Int) : Boolean {
BookInterface.pageSetup(player, BookInterface.FANCY_BOOK_3_49, TITLE, CONTENTS)
if (BookInterface.isLastPage(pageNum, CONTENTS.size)) {
setAttribute(player, "/save:readWitchsBook", true);
}
return true
}
}
@@ -159,10 +159,6 @@ public class WitchsHousePlugin extends OptionHandler {
case 24673:
player.teleport(Location.create(2906, 3468, 0));
break;
case 2408:
player.getDialogueInterpreter().open(4501993, node);
player.setAttribute("/save:readWitchsBook", true);
break;
}
return true;
}