Skip to content

Commit

Permalink
Fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Aug 20, 2024
1 parent 8fafac5 commit 3bc5234
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "maven-publish"
id "fabric-loom" version "1.6-SNAPSHOT"
id "fabric-loom" version "1.7-SNAPSHOT"
id 'me.modmuss50.mod-publish-plugin' version '0.5.1'
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ minecraft_version=1.21
yarn_mappings=1.21+build.2
loader_version=0.15.11
# Mod Properties
mod_version = 1.4.2
mod_version = 1.4.3
maven_group = essentialaddons
# Dependencies
carpet_version=1.4.147
lithium_version=mc1.21-0.12.7
lithium_version=mc1.21-0.13.0
fabric_version=0.100.3+1.21
minecraft_dependency=1.21.x

2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.Direction;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(HopperHelper.class)
public class HopperHelperMixin {
@Inject(
method = "tryMoveSingleItem(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/SidedInventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z",
method = "tryMoveSingleItem(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/SidedInventory;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z",
at = @At("HEAD"),
cancellable = true
)
private static void onTryMoveItem(Inventory to, SidedInventory toSided, ItemStack transferStack, int targetSlot, Direction fromDirection, CallbackInfoReturnable<Boolean> cir) {
private static void onTryMoveItem(Inventory to, SidedInventory toSided, ItemStack transferStack, ItemStack transferChecker, int targetSlot, Direction fromDirection, CallbackInfoReturnable<Boolean> cir) {
if (EssentialSettings.stackableShulkersInPlayerInventories && EssentialUtils.isItemShulkerBox(to.getStack(targetSlot).getItem())) {
cir.setReturnValue(false);
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
"fabricloader": ">=0.15.0",
"minecraft": "${minecraft_dependency}",
"fabric": "*"
},
"breaks": {
"lithium": "<0.13.0"
}
}

0 comments on commit 3bc5234

Please sign in to comment.