From 20424b081ced8ffd027807964614bfba3ecd1e0e Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Sun, 14 Mar 2021 22:00:05 +0100 Subject: [PATCH] Allow `none` as image in height brush, fixes #969 --- .../main/java/com/sk89q/worldedit/command/BrushCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java index 7f9680a77..020300fcd 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java @@ -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";