-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5df0b0e
commit edeacd8
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/terraformersmc/modmenu/mixin/MixinListWidget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.terraformersmc.modmenu.mixin; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import com.terraformersmc.modmenu.util.ListWidgetHelper; | ||
|
||
import net.minecraft.client.gui.widget.ListWidget; | ||
|
||
@Mixin(ListWidget.class) | ||
public class MixinListWidget implements ListWidgetHelper { | ||
|
||
@Inject(method = "capScrolling", at = @At("HEAD")) | ||
private void modmenu$capScrolling(CallbackInfo ci) { | ||
this.doCapScrolling(); | ||
} | ||
|
||
@Override | ||
public void doCapScrolling() { | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/terraformersmc/modmenu/util/ListWidgetHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.terraformersmc.modmenu.util; | ||
|
||
public interface ListWidgetHelper { | ||
|
||
void doCapScrolling(); | ||
|
||
} |