You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InputStreamoldVersionSchematicStream = DimDoors.class.getResourceAsStream(schematicJarDirectory + extendedTemplatelocation + ".schematic"); //@todo also check for other schematics
DimDoors.log.error("Schematic file " + template.getId() + ".schematic did not load correctly from config folder.", ex);
143
-
}
144
131
} else {
145
-
DimDoors.log.error("Schematic \"" + template.getId() + "\" was not found in the jar or config directory, neither with the .schem extension, nor with the .schematic extension.");
132
+
DimDoors.log.error("Schematic \"" + template.getId() + "\".schem was not found in the jar or config directory.");
Logger.getLogger(SchematicHandler.class.getName()).log(Level.SEVERE, "Schematic file for " + template.getId() + " could not be read as a valid schematic NBT file.", ex); // TODO: consistently use one type of logger for this.
@@ -294,7 +277,7 @@ public PocketTemplate getPublicPocketTemplate() {
Logger.getLogger(SchematicHandler.class.getName()).log(Level.SEVERE, "Something went wrong while saving " + saveFile.getAbsolutePath() + " to disk.", ex);
//Initialising the possible locations/formats for the schematic file
21
-
InputStreamoldVersionSchematicStream = DimDoors.class.getResourceAsStream(schematicJarDirectory + id + ".schematic");//@todo also check for other schematics
20
+
InputStreamschematicStream = DimDoors.class.getResourceAsStream(schematicJarDirectory + id + ".schem");
22
21
23
22
//determine which location to load the schematic file from (and what format)
DimDoors.log.warn("Schematic '" + id + "' was not found in the jar or config directory, neither with the .schem extension, nor with the .schematic extension.");
@@ -35,7 +34,7 @@ public BaseSchematicGateway(String id) {
0 commit comments