Permalink
Browse files

Merge pull request #1 from sk89q/master

Update for BlockChangeFlags change
  • Loading branch information...
SlimSoftware
SlimSoftware committed Dec 18, 2017
2 parents 099987d + fbd6f13 commit ea333ef02b09f18c5e582e90a971e7061206e0ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 worldedit-sponge/src/main/java/com/sk89q/worldedit/sponge/SpongeWorld.java
@@ -43,7 +43,7 @@
import org.spongepowered.api.data.property.block.SkyLuminanceProperty;
import org.spongepowered.api.entity.EntityType;
import org.spongepowered.api.entity.EntityTypes;
import org.spongepowered.api.world.BlockChangeFlag;
import org.spongepowered.api.world.BlockChangeFlags;
import org.spongepowered.api.world.World;
import javax.annotation.Nullable;
@@ -129,7 +129,7 @@ public boolean setBlock(Vector position, BaseBlock block, boolean notifyAndLight
.world(world.getProperties())
.build();
snapshot.restore(true, notifyAndLight ? BlockChangeFlag.ALL : BlockChangeFlag.NONE);
snapshot.restore(true, notifyAndLight ? BlockChangeFlags.ALL : BlockChangeFlags.NONE);
// Create the TileEntity
if (block.hasNbtData()) {

0 comments on commit ea333ef

Please sign in to comment.