Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for 1.18.1 and 1.18
Browse files Browse the repository at this point in the history
AnAwesomGuy committed Apr 26, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
zalegrala Zach Leslie
1 parent df8e05e commit 08a0a2e
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.4
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.22
loader_version=0.14.19

# Mod Properties
mod_version = 1.0
mod_version = 1.0.0+1.18.1
maven_group = net.anawesomguy
archives_base_name = stone-shears

# Dependencies
fabric_version=0.76.0+1.18.2
fabric_version=0.46.6+1.18
multi_item_lib_version=1.5.2
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@

@Mixin(ItemPredicate.class)
public abstract class ItemPredicateMixin {
@ModifyVariable(at = @At("HEAD"), method = "<init>(Lnet/minecraft/tag/TagKey;Ljava/util/Set;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;[Lnet/minecraft/predicate/item/EnchantmentPredicate;[Lnet/minecraft/predicate/item/EnchantmentPredicate;Lnet/minecraft/potion/Potion;Lnet/minecraft/predicate/NbtPredicate;)V")
@ModifyVariable(at = @At("HEAD"), method = "<init>(Lnet/minecraft/tag/Tag;Ljava/util/Set;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;[Lnet/minecraft/predicate/item/EnchantmentPredicate;[Lnet/minecraft/predicate/item/EnchantmentPredicate;Lnet/minecraft/potion/Potion;Lnet/minecraft/predicate/NbtPredicate;)V")
private static Set<Item> isShears(Set<Item> set) {
if (set != null && set.contains(Items.SHEARS)) {
set = new HashSet<>(set);
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"depends": {
"fabricloader": ">=0.14.14",
"fabric": "*",
"minecraft": "~1.18.2",
"minecraft": ["1.18", "1.18.1"],
"java": ">=17",
"multi_item_lib": "1.5.x"
}

0 comments on commit 08a0a2e

Please sign in to comment.