Use mojang's utility method instead of our own

This commit is contained in:
Sollace 2018-10-12 17:57:21 +02:00
parent 12ebe36662
commit 4aaadd1716

View file

@ -84,7 +84,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler {
private final Edge sneakKey = new Edge(this::sneakToggled) {
@Override
protected boolean nextState() {
return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
return GuiScreen.isShiftKeyDown();
}
};