Skip to content

Commit

Permalink
fix fabric mod json
Browse files Browse the repository at this point in the history
fix cursed mixin
  • Loading branch information
ProjectET committed Jul 31, 2024
1 parent 4f2d823 commit cc57f01
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ dependencies {
exclude group: "net.fabricmc.fabric-api"
}

modLocalRuntime "dev.architectury:architectury-fabric:12.1.3"
modLocalRuntime "dev.architectury:architectury-fabric:${project.arch_version}"
modLocalRuntime modCompileOnly("me.shedaniel:RoughlyEnoughItems-fabric:${project.rei_version}") {
exclude group: "net.fabricmc.fabric-api"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ archives_base_name=AE2Things
fabric_version=0.92.2+1.20.1
ae2_version=15.2.11
cloth_config_version=11.1.118
arch_version=12.1.3
arch_version=9.2.14
rei_version=12.1.740
wthit_version=8.13.3
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class CursedInternalSlotMixin {
@Shadow
public NonNullList<Slot> slots;

@Inject(method = "doClick", at = @At(value = "INVOKE", target = "net/minecraft/world/item/ItemStack.copyWithCount (I)Lnet/minecraft/world/item/ItemStack;"), slice = @Slice(from = @At(value = "INVOKE", target = "net/minecraft/world/inventory/Slot.hasItem ()Z")), locals = LocalCapture.CAPTURE_FAILHARD, cancellable = true)
@Inject(method = "doClick", at = @At(value = "INVOKE", target = "net/minecraft/world/item/ItemStack.copyWithCount (I)Lnet/minecraft/world/item/ItemStack;"), slice = @Slice(from = @At(value = "INVOKE", target = "net/minecraft/world/inventory/Slot.hasItem ()Z", ordinal = 1)), cancellable = true)
public void CLONE(int slotIndex, int button, ClickType actionType, Player player, CallbackInfo ci) {
Slot i = this.slots.get(slotIndex);
if(DISKCellInventory.hasDiskUUID(i.getItem())) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"depends": {
"fabricloader": ">=0.15.0",
"fabric": "*",
"ae2": ">=11.0.0",
"minecraft": "1.19.*"
"ae2": ">=15.0.0",
"minecraft": "1.20.*"
}
}

0 comments on commit cc57f01

Please sign in to comment.