Merge branch 'master' of https://github.com/teamteamteam/SpaceScooter
This commit is contained in:
commit
d934ff02bf
|
@ -22,8 +22,12 @@ public class Loader {
|
|||
* Return the loaded BufferedImage by its filename.
|
||||
*/
|
||||
public static BufferedImage getBufferedImageByFilename(String filename) {
|
||||
if(CodeEnvironment.isJar()) {
|
||||
return Loader.images.get(filename);
|
||||
} else {
|
||||
return Loader.images.get(filename.replace("/", File.separator));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform the initial loading of everything and show the progress on the given LoadingScreen.
|
||||
|
|
Loading…
Reference in New Issue