Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
fix CCE
Browse files Browse the repository at this point in the history
Signed-off-by: Devan-Kerman <[email protected]>
  • Loading branch information
Devan-Kerman committed Sep 13, 2020
1 parent 5184883 commit 5e31dcd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void renderItemFirstPersonCenter(MatrixStack transform, VertexConsumerPr
float tZ = -0.4f * MathHelper.sin(swingRt * (float) Math.PI);
transform.translate(0, -tX / 2, tZ);

HeldItemRendererAccess access = (HeldItemRendererAccess) render;
HeldItemRendererAccess access = (HeldItemRendererAccess) renderer;
float pitchAngle = access.callGetMapAngle(pitch);
transform.translate(0, 0.04F + equipProgress * -1.2f + pitchAngle * -0.5f, -0.72f);
transform.multiply(Vector3f.POSITIVE_X.getDegreesQuaternion(pitchAngle * -85.0f));
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/computercraft.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"package": "dan200.computercraft.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
"AffineTransformationAccess",
"BakedQuadAccess",
"ChatHudAccess",
"HeldItemRendererAccess",
"MinecraftServerAccess",
"MixinBlock",
"MixinEntity",
Expand All @@ -17,6 +13,10 @@
"WorldSavePathAccess"
],
"client": [
"AffineTransformationAccess",
"BakedQuadAccess",
"ChatHudAccess",
"HeldItemRendererAccess",
"MixinHeldItemRenderer",
"MixinItemFrameEntityRenderer",
"MixinMinecraftGame",
Expand Down
9 changes: 6 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"schemaVersion": 1,

"id": "computercraft",
"name": "CC:T for Fabric",
"version": "${version}",
Expand All @@ -26,8 +25,12 @@
},
"environment": "*",
"entrypoints": {
"main": [ "dan200.computercraft.ComputerCraft" ],
"client": ["dan200.computercraft.client.proxy.ComputerCraftProxyClient"]
"main": [
"dan200.computercraft.ComputerCraft"
],
"client": [
"dan200.computercraft.client.proxy.ComputerCraftProxyClient"
]
},
"mixins": [
"computercraft.mixins.json"
Expand Down

0 comments on commit 5e31dcd

Please sign in to comment.