From 06211c2520af46471aeea0f8b28a18d70c95328f Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 7 Jan 2024 13:01:44 -0600 Subject: [PATCH] invisible stock bufix the recent update to the render was apparently missing a fallback texture mapping. --- .../java/fexcraft/tmt/slim/ModelRendererTurbo.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/fexcraft/tmt/slim/ModelRendererTurbo.java b/src/main/java/fexcraft/tmt/slim/ModelRendererTurbo.java index 806585553..17786e6f0 100644 --- a/src/main/java/fexcraft/tmt/slim/ModelRendererTurbo.java +++ b/src/main/java/fexcraft/tmt/slim/ModelRendererTurbo.java @@ -81,8 +81,14 @@ public ModelRendererTurbo(ModelBase modelbase, int textureX, int textureY){ boxName = ""; textureOffsetX = textureX; textureOffsetY = textureY; - textureWidth = 0; - textureHeight = 0;} + if(modelbase!=null){ + textureWidth=modelbase.textureWidth; + textureHeight=modelbase.textureHeight; + } else { + textureWidth = 512; + textureHeight = 512; + } + } public ModelRendererTurbo(ModelBase modelbase, String s){this(s);} public ModelRendererTurbo(TurboList modelbase, String s){this(s);}