Fix backward compatibility while printing dimension sprite in list coordinates view
This commit is contained in:
parent
ec178502ca
commit
509ede5424
@ -13,6 +13,9 @@ public class IdentifiersCache {
|
|||||||
public IdentifiersCache() {
|
public IdentifiersCache() {
|
||||||
add(DEFAULT, cache);
|
add(DEFAULT, cache);
|
||||||
add("overworld", cache);
|
add("overworld", cache);
|
||||||
|
add("minecraft:overworld", "overworld", cache);
|
||||||
|
add("minecraft:the_end", "end", cache);
|
||||||
|
add("minecraft:the_nether", "nether", cache);
|
||||||
add("nether", cache);
|
add("nether", cache);
|
||||||
add("end", cache);
|
add("end", cache);
|
||||||
add("ping", cache);
|
add("ping", cache);
|
||||||
@ -25,6 +28,10 @@ public class IdentifiersCache {
|
|||||||
return cache.getOrDefault(key, cache.get(DEFAULT));
|
return cache.getOrDefault(key, cache.get(DEFAULT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void add(String identifierName, String resourceName, Map<String, Identifier> cache) {
|
||||||
|
cache.put(identifierName, createIdentifier(resourceName));
|
||||||
|
}
|
||||||
|
|
||||||
private static void add(String resourceName, Map<String, Identifier> cache) {
|
private static void add(String resourceName, Map<String, Identifier> cache) {
|
||||||
cache.put(resourceName, createIdentifier(resourceName));
|
cache.put(resourceName, createIdentifier(resourceName));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user