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. this.actionGuiCooldown = 2; // Prevent to press too quickly the focused element, so we have to skip 5 ticks.
return false; return false;
} else if (element instanceof AlwaysSelectedEntryListWidget) { } 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; return false;
} else if (element instanceof ParentElement) { } else if (element instanceof ParentElement) {
ParentElement entryList = (ParentElement) element; ParentElement entryList = (ParentElement) element;

View File

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

View File

@@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.16.1 minecraft_version=1.16.1
yarn_mappings=1.16.1+build.9:v2 yarn_mappings=1.16.1+build.18:v2
loader_version=0.8.8+build.202 loader_version=0.8.8+build.202
# Mod Properties # Mod Properties