Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiewuzhiying committed Sep 29, 2024
1 parent a81efdf commit 14fe81b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private static PoseStack redirectTransformStackTranslate(final PoseStack ms) {
private static BlockHitResult valkyrienskies$hitResult;

@ModifyArg(method = "drawCustomBlockSelection", at = @At(value = "INVOKE",
target = "Lnet/minecraft/world/level/border/WorldBorder;isWithinBounds(Lnet/minecraft/core/BlockPos;)Z"))
target = "Lnet/minecraft/world/level/border/WorldBorder;isWithinBounds(Lnet/minecraft/core/BlockPos;)Z"),
remap = true)
private static BlockPos modIsWithinBounds(final BlockPos blockPos) {
final Level level = Minecraft.getInstance().level;
if (level != null) {
Expand All @@ -98,7 +99,7 @@ private static BlockPos modIsWithinBounds(final BlockPos blockPos) {
return blockPos;
}

@Inject(method = "drawCustomBlockSelection", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/vertex/PoseStack;translate(DDD)V"))
@Inject(method = "drawCustomBlockSelection", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/vertex/PoseStack;translate(DDD)V"), remap = true)
private static void harvest(RenderHighlightEvent.Block event, CallbackInfo ci) {
valkyrienskies$info = event.getCamera();
valkyrienskies$hitResult = (BlockHitResult) event.getTarget();
Expand Down

0 comments on commit 14fe81b

Please sign in to comment.