mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-19 23:57:44 +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) {
|
if (teleport != null) {
|
||||||
player.teleport(teleport);
|
player.teleport(teleport);
|
||||||
}
|
}
|
||||||
if (!(book == null && book.isEmpty() && Quests.citizensBooks == null)) {
|
if (!(book == null && book.isEmpty() && Quests.citizensBooks != null)) {
|
||||||
if (Quests.citizensBooks.hasFilter(book)) {
|
if (Quests.citizensBooks.hasFilter(book)) {
|
||||||
Quests.citizensBooks.openBook(player, Quests.citizensBooks.getFilter(book));
|
Quests.citizensBooks.openBook(player, Quests.citizensBooks.getFilter(book));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user