removed some unused code

This commit is contained in:
Luis C.M committed 2024-03-20 00:06:08 -05:00
1 parent adad618de5
commit 7b61511a64
1 file changed
+1 -8
@@ -511,14 +511,7 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
if (dialog.alignment == 1) {
int i = totalRows - lineBlocks.get(lineBlocks.size() - 1).lines.size() - 1;
height = count - totalRows + lineOffset - i + 1;
screenPos = ClientProxy.Font.height() * (totalRows - lineOffset);// dialog.textHeight + ClientProxy.Font.height() + (totalRows - lineOffset);
int scrollToOffset = 0;
if (totalRows * ClientProxy.Font.height() > dialog.textHeight) {
scrollToOffset = totalRows - lineBlocks.get(lineBlocks.size() - 1).lines.size() + (int) Math.floor(lineBlocks.size() / 2f);
}
y = ((count - scrollToOffset) * ClientProxy.Font.height()) + screenPos + scrollY + height;
screenPos = ClientProxy.Font.height() * (totalRows - lineOffset);
y = (height * ClientProxy.Font.height()) + screenPos + scrollY;
}