diff --git a/src/main/java/com/thevoxelbox/voxelsniper/brush/type/GenerateTreeBrush.java b/src/main/java/com/thevoxelbox/voxelsniper/brush/type/GenerateTreeBrush.java index 26526cd1..e53a95aa 100644 --- a/src/main/java/com/thevoxelbox/voxelsniper/brush/type/GenerateTreeBrush.java +++ b/src/main/java/com/thevoxelbox/voxelsniper/brush/type/GenerateTreeBrush.java @@ -1,6 +1,7 @@ package com.thevoxelbox.voxelsniper.brush.type; import com.fastasyncworldedit.core.configuration.Caption; +import com.fastasyncworldedit.core.registry.state.PropertyKey; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.world.block.BlockCategories; import com.sk89q.worldedit.world.block.BlockState; @@ -397,7 +398,9 @@ private void generateLeafNodeBlock(int x, int y, int z) { BlockState block = getBlock(x, y, z); if (block.isAir()) { // Creates block. - setBlock(x, clampY(y), z, this.leafType); + setBlockData(x, clampY(y), z, this.leafType + .getDefaultState() + .with(PropertyKey.PERSISTENT, true)); } } }