1
0
mirror of https://github.com/plexusorg/Plex-FAWE.git synced 2025-04-05 08:03:13 +00:00

Allow none as image in height brush, fixes

This commit is contained in:
Hannes Greule 2021-03-14 22:00:05 +01:00
parent d974164204
commit 20424b081c

@ -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";