Skip to content

Commit 19c8f7a

Browse files
committed
bad math buddy
1 parent c20f7dc commit 19c8f7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ authors=Falkreon, acikek
1616
contributors=Trudle, Tomate0613, afamiliarquiet, FoundationGames, TheEpicBlock, hama
1717
license=MIT
1818
# Mod Version
19-
baseVersion=1.9.1
19+
baseVersion=1.9.2
2020
# Branch Metadata
2121
branch=1.21.7
2222
tagBranch=1.21.7

src/main/java/net/modfest/scatteredshards/client/render/ShardBlockEntityRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void render(ShardBlockEntity entity, float tickDelta, MatrixStack matrice
162162
ShardIconOffsets.Offset offset = shardType.getOffsets().getNormal();
163163

164164
shard.icon().ifLeft(stack -> {
165-
matrices.translate((offset.left() - 4) * metersPerPixel, offset.up() * metersPerPixel, -0.005f); //extra -0.002 here to prevent full-cubes from zfighting the card
165+
matrices.translate((4 - offset.left()) * metersPerPixel, (8 - offset.up()) * metersPerPixel, -0.005f); //extra -0.002 here to prevent full-cubes from zfighting the card
166166
matrices.scale(-0.38f, 0.38f, 0.001f /*0.6f*/);
167167

168168
MinecraftClient.getInstance().getItemRenderer().renderItem(stack, ItemDisplayContext.GUI, actualLight, OverlayTexture.DEFAULT_UV, matrices, vertexConsumers, entity.getWorld(), 0);

0 commit comments

Comments
 (0)