Skip to content

Commit a4c37cf

Browse files
committed
Fix TextureLoader.openResourceStream assuming the domain is provided by the resource manager.
1 parent cf8a569 commit a4c37cf

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ mc_version=1.12.2
22
forge_version=14.23.0.2544
33
mcp_mappings=snapshot_20171120
44

5-
mod_version=1.5.6-pre.1
5+
mod_version=1.5.7-pre.1

src/main/java/alexiil/mc/mod/load/render/TextureLoader.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ public static InputStream openResourceStream(ResourceLocation location) throws I
150150
}
151151

152152
Object value = map.get(location.getResourceDomain());
153+
154+
if (value == null) {
155+
if (CustomLoadingScreen.debugResourceLoading) {
156+
CLSLog.info("[debug] - Found no entry for the domain!");
157+
}
158+
return null;
159+
}
160+
153161
if (CustomLoadingScreen.debugResourceLoading) {
154162
CLSLog.info("[debug] - Looking at " + value);
155163
}

0 commit comments

Comments
 (0)