fix item models
This commit is contained in:
parent
b2d3f5a641
commit
f4b83b8e01
7 changed files with 86 additions and 71 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue