Skip to content

Commit 2d7f4a0

Browse files
committed
Fix clientcommands-scripting and compile errors
1 parent 123b437 commit 2d7f4a0

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/main/java/net/earthcomputer/clientcommands/mixin/MixinLivingEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void onEat(ItemStack stack, int particleCount, CallbackInfo ci) {
6060
}
6161

6262
@Inject(method = "baseTick",
63-
slice = @Slice(from = @At(value = "FIELD", target = "Lnet/minecraft/tag/FluidTags;WATER:Lnet/minecraft/tag/Tag$Identified;", ordinal = 0)),
63+
slice = @Slice(from = @At(value = "FIELD", target = "Lnet/minecraft/tag/FluidTags;WATER:Lnet/minecraft/tag/TagKey;", ordinal = 0)),
6464
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;", ordinal = 0))
6565
public void onUnderwater(CallbackInfo ci) {
6666
if (isThePlayer())

src/main/resources/clientcommands.aw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ extendable method net/minecraft/loot/condition/EntityPropertiesLootCondition <in
33
extendable method net/minecraft/loot/condition/LocationCheckLootCondition <init> (Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/util/math/BlockPos;)V
44
accessible class net/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate
55
accessible class net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate
6-
accessible method net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate <init> (Lnet/minecraft/tag/Tag;Ljava/util/Map;Lnet/minecraft/nbt/NbtCompound;)V
6+
accessible method net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate <init> (Lnet/minecraft/tag/TagKey;Ljava/util/Map;Lnet/minecraft/nbt/NbtCompound;)V
77
extendable method net/minecraft/client/gui/screen/ingame/AbstractInventoryScreen drawStatusEffects (Lnet/minecraft/client/util/math/MatrixStack;II)V

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
]
2424
},
2525
"depends": {
26+
"minecraft": "1.18.2",
2627
"fabricloader": ">=0.4.0",
2728
"fabric": "*"
2829
},

0 commit comments

Comments
 (0)