Updated for latest Sponge API changes

This commit is contained in:
Wyatt Childers 2016-07-24 11:20:11 -04:00 committed by wizjany
parent b99ea5ec6c
commit 51d44f42fd

View File

@ -48,6 +48,7 @@ import org.spongepowered.api.event.cause.Cause;
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;
@ -136,7 +137,7 @@ public abstract class SpongeWorld extends AbstractWorld {
.world(world.getProperties())
.build();
snapshot.restore(true, notifyAndLight);
snapshot.restore(true, notifyAndLight ? BlockChangeFlag.ALL : BlockChangeFlag.NONE);
// Create the TileEntity
if (block.hasNbtData()) {