Fix Dialog Alignment Saving. Default is not Bottom

This commit is contained in:
Kam committed 2023-07-30 16:44:28 -04:00
1 parent c6c212d68e
commit 0ba3092e51
1 file changed
+3 -2
@@ -40,7 +40,7 @@ public class Dialog implements ICompatibilty, IDialog {
public boolean showOptionLine = true;
//0 - Top, 1 - Bottom, 2 (Not implemented yet) - Center
public byte alignment = 0;
public byte alignment = 1;
public boolean renderGradual = false;
public boolean showPreviousBlocks = true;
@@ -186,7 +186,8 @@ public class Dialog implements ICompatibilty, IDialog {
compound.setBoolean("DialogDisableEsc", disableEsc);
compound.setBoolean("DialogDarkScreen", darkenScreen);
compound.setByte("DialogAlignment", alignment);
if(sound != null && !sound.isEmpty())
compound.setString("DialogSound", sound);