mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 10:22:25 +00:00
Fixed NullPointerException when the quest editor is opened through the NPC wand's global button.
This commit is contained in:
1 parent
864ce6befc
commit
22a768b8c2
1 file changed
+1
-1
@@ -87,7 +87,7 @@ public class GuiNPCManageQuest extends GuiNPCInterface2 implements IScrollData,
|
||||
|
||||
this.addButton(new GuiNpcButton(9, guiLeft + 4, guiTop + 131,90, 20, new String[]{"quest.npc","quest.instant"},quest.completion.ordinal()));
|
||||
|
||||
if(quest.completerNpc.isEmpty())
|
||||
if(quest.completerNpc.isEmpty() && npc != null)
|
||||
quest.completerNpc = npc.display.name;
|
||||
|
||||
this.addTextField(new GuiNpcTextField(2,this, this.fontRendererObj, guiLeft + 96, guiTop + 131, 114, 20, quest.completerNpc));
|
||||
|
||||
Reference in new issue
Block a user