From 0baddf70344d4ab782e6a95f1c0c63c66757a331 Mon Sep 17 00:00:00 2001 From: TehBrian <32250137+T3hBrian@users.noreply.github.com> Date: Wed, 7 Nov 2018 23:16:19 -0500 Subject: [PATCH] Fixed height brush --- .../main/java/com/sk89q/worldedit/command/BrushCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java b/core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java index 68e636dc..c9090e86 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/BrushCommands.java @@ -745,7 +745,7 @@ public class BrushCommands extends BrushProcessor { private BrushSettings terrainBrush(Player player, LocalSession session, Expression radius, String image, int rotation, double yscale, boolean flat, boolean randomRotate, boolean layers, boolean smooth, ScalableHeightMap.Shape shape, CommandContext context) throws WorldEditException, FileNotFoundException, ParameterException { checkMaxBrushRadius(radius); - InputStream stream = image == null ? null : getHeightmapStream(image); + InputStream stream = (image == null || image.equalsIgnoreCase("null") || image.equalsIgnoreCase("#clipboard")) ? null : getHeightmapStream(image); HeightBrush brush; if (flat) { try {