Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/betterquesting/handlers/EventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import betterquesting.api.questing.IQuest;
import betterquesting.api.questing.party.IParty;
import betterquesting.api.storage.BQ_Settings;
import betterquesting.api.utils.BigItemStack;
import betterquesting.api.utils.UuidConverter;
import betterquesting.api2.cache.QuestCache;
import betterquesting.api2.cache.QuestCache.QResetTime;
Expand Down Expand Up @@ -332,8 +333,9 @@ public void onLivingUpdate(BQLivingUpdateEvent event) {
// TODO: Create a new message inbox system for these things. On screen popups aren't ideal in combat
private static void postPresetNotice(IQuest quest, EntityPlayer player, int preset) {
if (!(player instanceof EntityPlayerMP)) return;
ItemStack icon = quest.getProperty(NativeProps.ICON)
.getBaseStack();
final BigItemStack stack = quest.getProperty(NativeProps.ICON);
if (stack == null) return;
ItemStack icon = stack.getBaseStack();
UUID questId = QuestDatabase.INSTANCE.lookupKey(quest);

String questName = quest.getProperty(NativeProps.NAME);
Expand Down