From 0aadef97d08e5d544b5c62608e7cfd96c33e1ea6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 23 Aug 2021 21:26:59 +0100 Subject: [PATCH] Quick fix for SnowHeightMap --- .../com/sk89q/worldedit/math/convolution/SnowHeightMap.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/math/convolution/SnowHeightMap.java b/worldedit-core/src/main/java/com/sk89q/worldedit/math/convolution/SnowHeightMap.java index c5ea3e18e..df030639e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/math/convolution/SnowHeightMap.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/math/convolution/SnowHeightMap.java @@ -19,7 +19,6 @@ package com.sk89q.worldedit.math.convolution; -import com.google.common.collect.ImmutableMap; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.MaxChangedBlocksException; import com.sk89q.worldedit.function.mask.Mask; @@ -232,7 +231,7 @@ public class SnowHeightMap { private void setSnowLayer(int x, int z, float newHeight) throws MaxChangedBlocksException { int numOfLayers = (int) ((newHeight % 1) * 8) + 1; //FAWE start - avoid BlockVector3 creation for no reason - session.setBlock(x, (int) newHeight, z, BlockTypes.SNOW.getState(ImmutableMap.of(LAYERS, numOfLayers))); + session.setBlock(x, (int) newHeight, z, BlockTypes.SNOW.getDefaultState().with(LAYERS, numOfLayers)); //FAWE end }