Better Scroll in Multiplayer GUI

This commit is contained in:
kirillsaint 2023-10-25 11:26:45 +06:00
parent 3af556bc26
commit b999211582
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ public class SilentMultiplayerGui extends SilentScreen {
newScrollY += amountScrolled; newScrollY += amountScrolled;
else else
newScrollY = 0; newScrollY = 0;
if((newScrollY < blockHeight && ((servers.size() + 1) * 38) > blockHeight - 39) || amountScrolled < 0) { if((newScrollY < blockHeight && ((servers.size() + 1) * 38) > blockHeight - 43 - 41) || amountScrolled < 0) {
this.scrollY = (float) newScrollY; this.scrollY = (float) newScrollY;
if(this.scrollY < 0) { if(this.scrollY < 0) {
this.scrollY = 0; this.scrollY = 0;