File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/main/java/com/circulation/random_complement/mixin/ae2/new_patten_gui Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ show_testing_output = false
1616
1717# Mod Information
1818# HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/
19- mod_version = 1.8.6
19+ mod_version = 1.8.7
2020root_package = com.circulation
2121mod_id = random_complement
2222mod_name = RandomComplement
Original file line number Diff line number Diff line change 66import com .circulation .random_complement .client .RCGuiScrollbar ;
77import com .circulation .random_complement .client .RCScrollbarGui ;
88import com .circulation .random_complement .common .interfaces .RCPatternEncoder ;
9+ import net .minecraft .client .gui .GuiScreen ;
10+ import net .minecraft .client .gui .inventory .GuiContainer ;
911import net .minecraft .client .renderer .GlStateManager ;
1012import net .minecraft .inventory .Container ;
1113import org .spongepowered .asm .mixin .Final ;
@@ -41,7 +43,16 @@ public MixinGuiPatternTerm(Container container) {
4143
4244 @ Override
4345 protected void r$addScrollBars () {
44- r$getScrollBars ().add (r$scrollbar = new RCGuiScrollbar ());
46+ GuiContainer gui = this ;
47+ r$getScrollBars ().add (r$scrollbar = new RCGuiScrollbar () {
48+ @ Override
49+ public void wheel (int delta ) {
50+ if (gui .getSlotUnderMouse () != null && GuiScreen .isShiftKeyDown ()) {
51+ return ;
52+ }
53+ super .wheel (delta );
54+ }
55+ });
4556 }
4657
4758 @ Intrinsic
You can’t perform that action at this time.
0 commit comments