From 4df180ae5cfba223ba990cd335a0c996bb3e22ee Mon Sep 17 00:00:00 2001 From: McHorse Date: Sat, 1 Jun 2019 09:54:33 +0100 Subject: [PATCH] Fix clicking + not selecting current multi skin --- .../client/gui/framework/elements/GuiTexturePicker.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/mchorse/mclib/client/gui/framework/elements/GuiTexturePicker.java b/src/main/java/mchorse/mclib/client/gui/framework/elements/GuiTexturePicker.java index 43904598..dcc49335 100644 --- a/src/main/java/mchorse/mclib/client/gui/framework/elements/GuiTexturePicker.java +++ b/src/main/java/mchorse/mclib/client/gui/framework/elements/GuiTexturePicker.java @@ -110,12 +110,8 @@ private void addMultiSkin() } this.multiList.add(rl); - this.multiList.current = this.multiList.getList().indexOf(rl); - - if (this.multiList.current >= 0) - { - this.displayCurrent(this.multiList.getCurrent()); - } + this.multiList.current = this.multiList.getList().size() - 1; + this.displayCurrent(this.multiList.getCurrent()); } /**