Skip to content

Commit

Permalink
1.18.2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Jan 13, 2025
1 parent 9f4128e commit 590c66f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 590c66f

Please sign in to comment.