mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix dyed Items are not rendered with color. Closes #10799
This commit is contained in:
1 file changed
+3
-5
+3
-5
@@ -1,15 +1,13 @@
|
||||
--- a/net/minecraft/client/resources/model/cuboid/ItemModelGenerator.java
|
||||
+++ b/net/minecraft/client/resources/model/cuboid/ItemModelGenerator.java
|
||||
@@ -52,8 +_,10 @@
|
||||
@@ -52,8 +_,8 @@
|
||||
QuadCollection singleResult = null;
|
||||
QuadCollection.Builder builder = null;
|
||||
|
||||
- for (int layerIndex = 0; layerIndex < LAYERS.size(); layerIndex++) {
|
||||
- String textureReference = LAYERS.get(layerIndex);
|
||||
+ // Forge: Allow for more layers
|
||||
+ int layerIndex = 0;
|
||||
+ while (true) {
|
||||
+ String textureReference = String.format(java.util.Locale.ROOT, "layer%d", layerIndex++);
|
||||
+ for (int layerIndex = 0; true; layerIndex++) { // Forge: Allow for more layers
|
||||
+ String textureReference = String.format(java.util.Locale.ROOT, "layer%d", layerIndex);
|
||||
Material material = textureSlots.getMaterial(textureReference);
|
||||
if (material == null) {
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user