Skip to content

Commit

Permalink
Update version and add compatibility notes
Browse files Browse the repository at this point in the history
  • Loading branch information
kikugie committed Nov 6, 2024
1 parent 5896148 commit c0ba3a7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.21.1+build.2
loader_version=0.16.2

# Mod Properties
mod_version=1.5
mod_version=1.5.1
maven_group=dev.kikugie
archives_base_name=shulkerfix

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;

/**
* Prevents shulker stacking with Lithium installed.
* <br>
* <li>{@code me.jellysquid.mods.lithium.common.hopper.HopperHelper} is used for Lithium <0.14 compatibility.</li>
* <li>{@code tryMoveSingleItem(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/SidedInventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z} is used for Lithium <0.13 compatibility.</li>
*/
@Pseudo
@Mixin(targets = {"net.caffeinemc.mods.lithium.common.hopper.HopperHelper", "me.jellysquid.mods.lithium.common.hopper.HopperHelper"})
public class LithiumHopperHelperMixin {
@SuppressWarnings("UnresolvedMixinReference")
@WrapOperation(
method = {
"determineComparatorUpdatePattern",
// Lithium <0.13 compat
"tryMoveSingleItem(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/SidedInventory;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z",
"tryMoveSingleItem(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/inventory/SidedInventory;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;)Z"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;

/**
* Prevents shulker stacking with Lithium installed.
* <br>
* <li>{@code me.jellysquid.mods.lithium.common.hopper.HopperHelper} is used for Lithium <0.14 compatibility.</li>
*/
@Pseudo
@Mixin(targets = {"net.caffeinemc.mods.lithium.common.hopper.LithiumStackList", "me.jellysquid.mods.lithium.common.hopper.LithiumStackList"})
public class LithiumStackListMixin {
Expand Down

0 comments on commit c0ba3a7

Please sign in to comment.