Allow none as image in height brush, fixes #969

Dieser Commit ist enthalten in:
Hannes Greule 2021-03-14 22:00:05 +01:00
Ursprung d974164204
Commit 20424b081c

Datei anzeigen

@ -928,7 +928,7 @@ public class BrushCommands {
}
private InputStream getHeightmapStream(String filename) throws FileNotFoundException {
if (filename == null) {
if (filename == null || "none".equalsIgnoreCase(filename)) {
return null;
}
String filenamePng = filename.endsWith(".png") ? filename : filename + ".png";