diff --git a/common/src/main/java/org/vivecraft/client_vr/gui/GuiRadial.java b/common/src/main/java/org/vivecraft/client_vr/gui/GuiRadial.java index eb573048c..9fe403757 100644 --- a/common/src/main/java/org/vivecraft/client_vr/gui/GuiRadial.java +++ b/common/src/main/java/org/vivecraft/client_vr/gui/GuiRadial.java @@ -108,6 +108,6 @@ public static Button createButton( x *= index > numButtons / 2 ? -1 : 1; return new Button(centerX + x - buttonWidth / 2, centerY + y - 10, buttonWidth, 20, - Component.translatable(label), action); + new TranslatableComponent(label), action); } } diff --git a/common/src/main/java/org/vivecraft/client_vr/render/VRArmRenderer.java b/common/src/main/java/org/vivecraft/client_vr/render/VRArmRenderer.java index bd7ab93a4..54aeece34 100644 --- a/common/src/main/java/org/vivecraft/client_vr/render/VRArmRenderer.java +++ b/common/src/main/java/org/vivecraft/client_vr/render/VRArmRenderer.java @@ -14,6 +14,7 @@ import net.minecraft.client.renderer.texture.OverlayTexture; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.ItemStack; +import org.vivecraft.client.extensions.ModelPartExtension; import org.vivecraft.client_vr.gameplay.trackers.SwingTracker; import org.vivecraft.client_vr.provider.ControllerType; @@ -67,7 +68,7 @@ private void renderHand( // in case some mod messes with it rendererArm.setPos(side == ControllerType.LEFT ? 5F : -5F, 2F, 0F); rendererArm.setRotation(0F, 0F, 0F); - rendererArm.xScale = rendererArm.yScale = rendererArm.zScale = 1F; + ((ModelPartExtension) (Object) rendererArm).vivecraft$setScale(1F, 1F, 1F); // make sure they have the same state rendererArmwear.copyFrom(rendererArm);