Better Scroll in Multiplayer GUI
This commit is contained in:
parent
3af556bc26
commit
b999211582
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue