mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Fixed a couple of client-side dialog data errors.
This commit is contained in:
1 parent
60794592d1
commit
799d54a4dc
2 files changed
+4
-5
No files matched your search
@@ -90,9 +90,6 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
public GuiDialogInteract(EntityNPCInterface npc, Dialog dialog){
|
||||
super(npc);
|
||||
this.dialog = dialog;
|
||||
appendDialog(dialog);
|
||||
ySize = 238;
|
||||
|
||||
this.renderGradual = dialog.renderGradual;
|
||||
this.showPreviousBlocks = dialog.showPreviousBlocks;
|
||||
this.textSound = dialog.textSound;
|
||||
@@ -108,6 +105,9 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
this.optionOffsetX = dialog.optionOffsetX;
|
||||
this.optionOffsetY = dialog.optionOffsetY;
|
||||
|
||||
appendDialog(dialog);
|
||||
ySize = 238;
|
||||
|
||||
for (DialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
dialogImages.add(new GuiDialogImage(dialogImage));
|
||||
}
|
||||
|
||||
@@ -139,8 +139,7 @@ public class Dialog implements ICompatibilty, IDialog {
|
||||
if (!compound.hasKey("TextWidth"))
|
||||
textWidth = 300;
|
||||
if (!compound.hasKey("TextHeight"))
|
||||
textWidth = 400;
|
||||
|
||||
textHeight = 400;
|
||||
|
||||
availability.readFromNBT(compound);
|
||||
factionOptions.readFromNBT(compound);
|
||||
|
||||
Reference in new issue
Block a user