Correct null check for CitizensBooks, fixes #499

This commit is contained in:
HappyPikachu 2018-10-30 17:24:42 -04:00
parent 088bc3c933
commit d2a1e1c65d

View File

@ -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));
}