fix item models

This commit is contained in:
Sen 2025-06-30 13:50:23 +02:00
parent b2d3f5a641
commit f4b83b8e01
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
7 changed files with 86 additions and 71 deletions

View file

@ -193,7 +193,7 @@ public abstract class ModelBakery
else
{
bakedRegistry.put(entry, bakeModel(sprites, faceBakery, textureMap.getMissingSprite(),
modelblock1, ModelRotation.X0_Y0, false));
modelblock1, modelblock1.getRotation(), modelblock1.isUvLocked()));
}
}
else

View file

@ -149,8 +149,8 @@ public class ModelBlock extends Model {
this.primary = primary == null ? TextureMap.MISSING : primary;
this.parent = parent;
this.transform = transform;
this.uvLock = false;
this.rotation = ModelRotation.X0_Y0;
this.uvLock = parent != null && parent.isUvLocked();
this.rotation = parent != null ? parent.getRotation() : ModelRotation.X0_Y0;
this.layers = layers;
}