Skip to content

Commit

Permalink
Update for BlockChangeFlags change
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 16, 2017
1 parent 72d0e0d commit fbd6f13
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit fbd6f13

Please sign in to comment.