Better Scroll in Multiplayer GUI

This commit is contained in:
kirillsaint 2023-10-25 11:26:45 +06:00
parent 3af556bc26
commit b999211582

View File

@ -359,7 +359,7 @@ public class SilentMultiplayerGui extends SilentScreen {
newScrollY += amountScrolled;
else
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;
if(this.scrollY < 0) {
this.scrollY = 0;