Skip to content

Commit

Permalink
Fix clientcommands-scripting and compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Mar 4, 2022
1 parent 123b437 commit 2d7f4a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void onEat(ItemStack stack, int particleCount, CallbackInfo ci) {
}

@Inject(method = "baseTick",
slice = @Slice(from = @At(value = "FIELD", target = "Lnet/minecraft/tag/FluidTags;WATER:Lnet/minecraft/tag/Tag$Identified;", ordinal = 0)),
slice = @Slice(from = @At(value = "FIELD", target = "Lnet/minecraft/tag/FluidTags;WATER:Lnet/minecraft/tag/TagKey;", ordinal = 0)),
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;", ordinal = 0))
public void onUnderwater(CallbackInfo ci) {
if (isThePlayer())
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/clientcommands.aw
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ extendable method net/minecraft/loot/condition/EntityPropertiesLootCondition <in
extendable method net/minecraft/loot/condition/LocationCheckLootCondition <init> (Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/util/math/BlockPos;)V
accessible class net/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate
accessible class net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate
accessible method net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate <init> (Lnet/minecraft/tag/Tag;Ljava/util/Map;Lnet/minecraft/nbt/NbtCompound;)V
accessible method net/minecraft/command/argument/BlockPredicateArgumentType$TagPredicate <init> (Lnet/minecraft/tag/TagKey;Ljava/util/Map;Lnet/minecraft/nbt/NbtCompound;)V
extendable method net/minecraft/client/gui/screen/ingame/AbstractInventoryScreen drawStatusEffects (Lnet/minecraft/client/util/math/MatrixStack;II)V
1 change: 1 addition & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
]
},
"depends": {
"minecraft": "1.18.2",
"fabricloader": ">=0.4.0",
"fabric": "*"
},
Expand Down

0 comments on commit 2d7f4a0

Please sign in to comment.