mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-24 01:58:42 +01:00
Correct null check for CitizensBooks, fixes #499
This commit is contained in:
parent
088bc3c933
commit
d2a1e1c65d
@ -251,7 +251,7 @@ public class Event {
|
||||
if (teleport != null) {
|
||||
player.teleport(teleport);
|
||||
}
|
||||
if (!(book == null && book.isEmpty() && Quests.citizensBooks == null)) {
|
||||
if (!(book == null && book.isEmpty() && Quests.citizensBooks != null)) {
|
||||
if (Quests.citizensBooks.hasFilter(book)) {
|
||||
Quests.citizensBooks.openBook(player, Quests.citizensBooks.getFilter(book));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user