Fixed height brush

This commit is contained in:
TehBrian 2018-11-07 23:16:19 -05:00 committed by GitHub
parent beb5cd61a4
commit 0baddf7034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {