mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 13:57: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
|
||||
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++) {
|
||||
try (TextureData data = TextureData.load(resManager, textures.get(i))) {
|
||||
copyOver(data.getImage(), image);
|
||||
try (NativeImage data = NativeImage.read(resManager.getResourceOrThrow(textures.get(i)).getInputStream())) {
|
||||
copyOver(data, image);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue