mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 07:27:59 +01:00
Fix build
This commit is contained in:
parent
19938313dd
commit
6e63a4df72
1 changed files with 3 additions and 3 deletions
|
@ -20,11 +20,11 @@ public class TextureFlattener {
|
||||||
@Override
|
@Override
|
||||||
public void load(ResourceManager resManager) throws IOException {
|
public void load(ResourceManager resManager) throws IOException {
|
||||||
|
|
||||||
NativeImage image = TextureData.load(resManager, textures.get(0)).getImage();
|
NativeImage image = NativeImage.read(resManager.getResourceOrThrow(textures.get(0)).getInputStream());
|
||||||
|
|
||||||
for (int i = 1; i < textures.size(); i++) {
|
for (int i = 1; i < textures.size(); i++) {
|
||||||
try (TextureData data = TextureData.load(resManager, textures.get(i))) {
|
try (NativeImage data = NativeImage.read(resManager.getResourceOrThrow(textures.get(i)).getInputStream())) {
|
||||||
copyOver(data.getImage(), image);
|
copyOver(data, image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue