Fixed caches weren't being used
This commit is contained in:
parent
091be87789
commit
c0098fa92b
@ -3,12 +3,12 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
archivesBaseName = "Mario Kart World Tracker"
|
archivesBaseName = "Mario Kart World Tracker"
|
||||||
|
version = '1.0.1'
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
version = 1.0
|
|
||||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(21)
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(21)
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
@ -169,8 +169,10 @@ public class Registry {
|
|||||||
if(Files.exists(path)) {
|
if(Files.exists(path)) {
|
||||||
synchronized(syncObj) {
|
synchronized(syncObj) {
|
||||||
try(FileSystem system = FileSystems.newFileSystem(path)) {
|
try(FileSystem system = FileSystems.newFileSystem(path)) {
|
||||||
Path resolve = system.getPath(image.fileId().toString().replace("-", "_"));
|
Path resolve = system.getPath(image.fileId().toString().replace("-", "_")+".jpg");
|
||||||
if(Files.exists(resolve)) { return ImageIO.read(new ByteArrayInputStream(Files.readAllBytes(resolve))); }
|
if(Files.exists(resolve)) {
|
||||||
|
return ImageIO.read(new ByteArrayInputStream(Files.readAllBytes(resolve)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e) {
|
catch(Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user