From 287f3c409ff147cd93c10d400953e02962a428fb Mon Sep 17 00:00:00 2001 From: Léa Gris Date: Tue, 20 Dec 2022 07:07:57 +0100 Subject: Uv lock (#1564) * fix(GT_TextureBuilder): State check belongs to the build method. * fix(texture): lock orientation of large turbine controller Large turbine controllers displays the rotor's center of a 3-by-3 connected textures displayed on surrounding casings. To keep the rotor's center seamlessly aligned with the connected textures from the casings, it need to UV lock its orientation. Addresses issue: https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11953 * fix(GT_TextureBuilder): correctly check worldCoord's state --- src/main/java/gregtech/api/interfaces/ITextureBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/gregtech/api') diff --git a/src/main/java/gregtech/api/interfaces/ITextureBuilder.java b/src/main/java/gregtech/api/interfaces/ITextureBuilder.java index d0d25328b9..d8ae592c9e 100644 --- a/src/main/java/gregtech/api/interfaces/ITextureBuilder.java +++ b/src/main/java/gregtech/api/interfaces/ITextureBuilder.java @@ -14,6 +14,7 @@ public interface ITextureBuilder { * Build the {@link ITexture} * * @return The built {@link ITexture} + * @throws IllegalStateException if setFromBlock has never been called. */ ITexture build(); @@ -76,7 +77,6 @@ public interface ITextureBuilder { * Force using meta overload of getIcon. * * @return {@link ITextureBuilder} for chaining - * @throws IllegalStateException if setFromBlock has never been called. */ ITextureBuilder noWorldCoord(); -- cgit