FreeMinecraftModels icon indicating copy to clipboard operation
FreeMinecraftModels copied to clipboard

Properly handle cube face rotations

Open wadethegreat68 opened this issue 4 months ago • 2 comments

Hi again, I was using some programmatically generated models, but the face rotations on the cubes are ignored.

The issue is with the CubeBlueprint class, right here Anyways, it can be fixed by simply changing the line from map.put("rotation", 0); to map.put("rotation", (Double)map.get("rotation"));

prior to fix: Image after fix: Image

Anyways, Thank you for making this project, its pretty great.

wadethegreat68 avatar Aug 11 '25 18:08 wadethegreat68

Oh tiny addition to that fix, I just remembered you should probably check if the key exists and is valid before throwing it in the output

wadethegreat68 avatar Aug 11 '25 18:08 wadethegreat68

Oh hey. Is that what that was? I was wondering why I was getting that bug.

I'll definitely pull it in, thanks for contributing.

MagmaGuy avatar Aug 11 '25 18:08 MagmaGuy