mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 03:07:34 +00:00
removed some unused code
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user