Update mappings.

This commit is contained in:
LambdAurora
2020-06-29 17:03:04 +02:00
parent 2c53575d17
commit 7cfd8c9b77
3 changed files with 3 additions and 3 deletions

View File

@@ -595,7 +595,7 @@ public class LambdaInput
this.actionGuiCooldown = 2; // Prevent to press too quickly the focused element, so we have to skip 5 ticks.
return false;
} else if (element instanceof AlwaysSelectedEntryListWidget) {
((EntryListWidgetAccessor) element).lambdacontrols_moveSelection(right ? EntryListWidget.class_5403.field_25661 : EntryListWidget.class_5403.field_25662);
((EntryListWidgetAccessor) element).lambdacontrols_moveSelection(right ? EntryListWidget.MoveDirection.UP : EntryListWidget.MoveDirection.DOWN);
return false;
} else if (element instanceof ParentElement) {
ParentElement entryList = (ParentElement) element;

View File

@@ -17,5 +17,5 @@ import org.spongepowered.asm.mixin.gen.Invoker;
public interface EntryListWidgetAccessor
{
@Invoker("moveSelection")
void lambdacontrols_moveSelection(EntryListWidget.class_5403 direction);
void lambdacontrols_moveSelection(EntryListWidget.MoveDirection direction);
}