Skip to content

Commit

Permalink
Boy I'm sick of seeing those javac warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
quat1024 committed Jan 2, 2024
1 parent b29c8d0 commit c7c4006
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,35 +153,24 @@ protected void renderItemStack(GlassItemFrame itemFrame, PoseStack matrix, Multi
float scale = 0.32F;

switch(attach) {
case STANDING_BEHIND:
angle += 180F;
break;
case WALL_SIGN:
angle = 0;
matrix.translate(0.0, -0.3, 0.45);
break;
case HANGING_FROM_WALL:
angle = 0;
matrix.translate(0.0, -0.52, -0.01);

default:
break;
case STANDING_BEHIND -> angle += 180F;
case WALL_SIGN -> {
angle = 0;
matrix.translate(0.0, -0.3, 0.45);
}
case HANGING_FROM_WALL -> {
angle = 0;
matrix.translate(0.0, -0.52, -0.01);
}
}

matrix.translate(0, 0.35, 0.98);
matrix.scale(scale, scale, scale);
matrix.mulPose(Axis.YP.rotationDegrees(angle));

switch(attach) {
case HANGING_IN_FRONT:
matrix.translate(0.0, -0.52 / scale, -0.075);
break;
case HANGING_BEHIND:
matrix.translate(0.0, -0.52 / scale, 0.3);
break;

default:
break;
case HANGING_IN_FRONT -> matrix.translate(0.0, -0.52 / scale, -0.075);
case HANGING_BEHIND -> matrix.translate(0.0, -0.52 / scale, 0.3);
}

matrix.translate(0, 0, -0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static Block makeStone(ZRegister event, ZetaModule module, final Block ra
else
normal = constr.make(name, module, props).setCondition(enabledCond).setCreativeTab(CreativeModeTabs.BUILDING_BLOCKS, Blocks.DEEPSLATE, true);

ZetaBlock polished = (ZetaBlock) constr.make("polished_" + name, module, props).setCondition(enabledCond);
ZetaBlock polished = constr.make("polished_" + name, module, props).setCondition(enabledCond);
polishedBlocks.put(normal, polished);

if(isVanilla)
Expand Down

0 comments on commit c7c4006

Please sign in to comment.