diff --git a/common/src/main/java/net/irisshaders/iris/pbr/loader/SimplePBRLoader.java b/common/src/main/java/net/irisshaders/iris/pbr/loader/SimplePBRLoader.java index 45753701c3..b3f0841eec 100644 --- a/common/src/main/java/net/irisshaders/iris/pbr/loader/SimplePBRLoader.java +++ b/common/src/main/java/net/irisshaders/iris/pbr/loader/SimplePBRLoader.java @@ -36,7 +36,7 @@ protected AbstractTexture createPBRTexture(ResourceLocation imageLocation, Resou SimpleTexture pbrTexture = new SimpleTexture(pbrImageLocation); TextureContents contents = loadContentsSafe(pbrTexture, resourceManager); - if (contents != null) { + if (contents == null) { pbrTexture.releaseId(); return null; }