-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
43 additions
and
8 deletions.
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
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
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
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
20 changes: 20 additions & 0 deletions
20
.../io/github/ennuil/ennuis_bigger_gambiarra/mixin/jei/PlayerRecipeTransferHandlerMixin.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,20 @@ | ||
package io.github.ennuil.ennuis_bigger_gambiarra.mixin.jei; | ||
|
||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue; | ||
import com.llamalad7.mixinextras.sugar.Local; | ||
import io.github.ennuil.ennuis_bigger_inventories.api.HackjobKit; | ||
import mezz.jei.library.transfer.BasicRecipeTransferInfo; | ||
import net.minecraft.screen.ScreenHandler; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(BasicRecipeTransferInfo.class) | ||
public abstract class PlayerRecipeTransferHandlerMixin { | ||
@ModifyExpressionValue(method = "getInventorySlots", at = @At(value = "FIELD", target = "Lmezz/jei/library/transfer/BasicRecipeTransferInfo;inventorySlotCount:I")) | ||
private int modifySlotEnd(int original, @Local ScreenHandler screenHandler) { | ||
// This hackjob is generic enough to affect everything that's needed but it might be overreaching! | ||
// I recommend EMI for a better experience, but if you really want JEI, I guess we have this ticking time bomb | ||
// Do *not* point fingers to JEI's mod authors!!! I'm the one doing the gambiarra in the first place! | ||
return original == 36 && HackjobKit.isTenfoursized() ? 40 : original; | ||
} | ||
} |
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