mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix inconsistencies in how the values from the model are passed into the baked model.
This puts them in line with vanilla, as intended.
This commit is contained in:
1 parent
873c490470
commit
4b93e3a224
3 files changed
+6
-3
No files matched your search
@@ -214,7 +214,7 @@ public class CompositeModel implements IDynamicBakedModel
|
||||
continue;
|
||||
bakedParts.put(part.getKey(), submodel.bakeModel(bakery, spriteGetter, modelTransform, modelLocation));
|
||||
}
|
||||
return new CompositeModel(owner.isShadedInGui(), owner.useSmoothLighting(), owner.isSideLit(), particle, bakedParts.build(), owner.getCombinedTransform(), overrides);
|
||||
return new CompositeModel(owner.isShadedInGui(), owner.isSideLit(), owner.useSmoothLighting(), particle, bakedParts.build(), owner.getCombinedTransform(), overrides);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -58,7 +58,10 @@ public interface IModelConfiguration {
|
||||
RenderMaterial resolveTexture(String name);
|
||||
|
||||
/**
|
||||
* @return True if the item uses 3D lighting.
|
||||
* @return True if the item is a 3D model, false if it's a generated item model.
|
||||
* TODO: Rename.
|
||||
* This value has nothing to do with shading anymore, and this name is misleading.
|
||||
* It's actual purpose seems to be relegated to translating the model during rendering, so that it's centered.
|
||||
*/
|
||||
boolean isShadedInGui();
|
||||
|
||||
|
||||
Reference in new issue
Block a user