Skip to content

Commit a91d23d

Browse files
committed
fixed stuff
1 parent 9b9892b commit a91d23d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

common/src/main/java/com/lambda/mixin/render/HeldItemRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void onRenderArmHoldingItem(AbstractClientPlayerEntity player, float tic
3434
ViewModel.INSTANCE.transform(itemStack, hand, matrices);
3535
}
3636

37-
@Inject(method = "renderFirstPersonItem", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/item/HeldItemRenderer;renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/render/model/json/ModelTransformationMode;ZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V"))
37+
@Inject(method = "renderFirstPersonItem", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/item/HeldItemRenderer;renderItem(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemDisplayContext;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V", ordinal = 1))
3838
private void onRenderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack itemStack, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, CallbackInfo ci) {
3939
if (!ViewModel.INSTANCE.isEnabled()) return;
4040

@@ -85,4 +85,4 @@ private float modifySwing(float swingProgress) {
8585

8686
return swingProgress;
8787
}
88-
}
88+
}

common/src/main/resources/lambda.accesswidener

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ accessible field net/minecraft/client/MinecraftClient attackCooldown I
55
accessible field net/minecraft/client/MinecraftClient paused Z
66
accessible field net/minecraft/client/MinecraftClient thread Ljava/lang/Thread;
77
accessible field net/minecraft/client/MinecraftClient uptimeInTicks J
8-
accessible field net/minecraft/client/option/KeyBinding boundKey Lnet/minecraft/client/util/InputUtil$Key;
98
accessible field net/minecraft/client/input/Input movementVector Lnet/minecraft/util/math/Vec2f;
109
accessible field net/minecraft/client/MinecraftClient renderTaskQueue Ljava/util/Queue;
10+
accessible field net/minecraft/client/option/KeyBinding boundKey Lnet/minecraft/client/util/InputUtil$Key;
1111

1212
# World
1313
accessible field net/minecraft/client/world/ClientWorld entityManager Lnet/minecraft/world/entity/ClientEntityManager;
@@ -35,7 +35,6 @@ accessible method net/minecraft/entity/Entity isAlwaysInvulnerableTo (Lnet/minec
3535
accessible field net/minecraft/entity/player/PlayerInventory equipment Lnet/minecraft/entity/EntityEquipment;
3636
accessible method net/minecraft/client/network/ClientPlayerEntity applyMovementSpeedFactors (Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/util/math/Vec2f;
3737
accessible field net/minecraft/entity/EntityEquipment map Ljava/util/EnumMap;
38-
accessible method net/minecraft/entity/LivingEntity getHandSwingDuration ()I
3938

4039
# Camera
4140
accessible method net/minecraft/client/render/Camera setPos (DDD)V
@@ -47,7 +46,6 @@ accessible class net/minecraft/client/gui/screen/SplashOverlay$LogoTexture
4746
accessible field com/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer indexBuffer Lcom/mojang/blaze3d/buffers/GpuBuffer;
4847
accessible field net/minecraft/client/gl/GlGpuBuffer id I
4948

50-
5149
# Text
5250
accessible field net/minecraft/text/Style color Lnet/minecraft/text/TextColor;
5351
accessible field net/minecraft/text/Style bold Ljava/lang/Boolean;

0 commit comments

Comments
 (0)