mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Allow none
as image in height brush, fixes #969
This commit is contained in:
parent
d974164204
commit
20424b081c
@ -928,7 +928,7 @@ public class BrushCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private InputStream getHeightmapStream(String filename) throws FileNotFoundException {
|
private InputStream getHeightmapStream(String filename) throws FileNotFoundException {
|
||||||
if (filename == null) {
|
if (filename == null || "none".equalsIgnoreCase(filename)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String filenamePng = filename.endsWith(".png") ? filename : filename + ".png";
|
String filenamePng = filename.endsWith(".png") ? filename : filename + ".png";
|
||||||
|
Loading…
Reference in New Issue
Block a user