mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Close the resource
This commit is contained in:
parent
0dab332a0e
commit
0056d078c9
1 changed files with 1 additions and 3 deletions
|
@ -44,9 +44,7 @@ public class PonyData implements IPonyData {
|
||||||
return new PonyData();
|
return new PonyData();
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try (Resource res = MinecraftClient.getInstance().getResourceManager().getResource(identifier)) {
|
||||||
Resource res = MinecraftClient.getInstance().getResourceManager().getResource(identifier);
|
|
||||||
|
|
||||||
PonyData data = res.getMetadata(SERIALISER);
|
PonyData data = res.getMetadata(SERIALISER);
|
||||||
|
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
|
|
Loading…
Reference in a new issue