Skip to content

Commit

Permalink
Updated for latest Sponge API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkArc authored and me4502 committed Oct 30, 2016
1 parent 0ba1323 commit 0a107e9
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -48,6 +48,7 @@
import org.spongepowered.api.event.cause.NamedCause;
import org.spongepowered.api.event.cause.entity.spawn.SpawnCause;
import org.spongepowered.api.event.cause.entity.spawn.SpawnTypes;
import org.spongepowered.api.world.BlockChangeFlag;
import org.spongepowered.api.world.World;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -136,7 +137,7 @@ public boolean setBlock(Vector position, BaseBlock block, boolean notifyAndLight
.world(world.getProperties())
.build();

snapshot.restore(true, notifyAndLight);
snapshot.restore(true, notifyAndLight ? BlockChangeFlag.ALL : BlockChangeFlag.NONE);

// Create the TileEntity
if (block.hasNbtData()) {
Expand Down

0 comments on commit 0a107e9

Please sign in to comment.