
Y-offset for rail model translated twice
Closed this issue ยท 0 comments
Before reporting, I have confirmed that
- This bug does not appear to be reported on GitHub Issues before.
- This bug still exists in the latest version of the Minecraft Transit Railway mod.
- I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.
Describe the Bug
When using a rail model with Y-offset, a value of 0.5
will translate the rail model upwards by 1.0
meter.
DistrictOfJoban/Public-Assets#2
Reproduction Steps
- Download the MTR Curved Platform Pack
- Apply the pack and choose one of the curved platform rail
- Witness platform floating up by 0.5 blocks more. (It has a yOffset of
0.5
, which is designed to align exactly to a full block)
In-game Log and Crash Report
Issue cause identified, thus not required
Mod Loader
Fabric
Minecraft Version
1.20.4
Minecraft Transit Railway Version
4.0.0-prerelease.2
Operating System
Arch Linux
List of Mods or Modpack You Were Using
Issue cause identified, thus not required
Extra Information
Likely because the offset is already passed to StoredModelResourceBase
, and when rendering the rail it tries to translate the offset again therefore translating it twice