Merge pull request #1189 from T3hBrian/master
Fix "null" and "#clipboard" argument failure for some brushes
This commit is contained in:
commit
ba066847c4
@ -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 {
|
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);
|
checkMaxBrushRadius(radius);
|
||||||
InputStream stream = image == null ? null : getHeightmapStream(image);
|
InputStream stream = (image == null || image.equalsIgnoreCase("null") || image.equalsIgnoreCase("#clipboard")) ? null : getHeightmapStream(image);
|
||||||
HeightBrush brush;
|
HeightBrush brush;
|
||||||
if (flat) {
|
if (flat) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user