mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Updated for latest Sponge API changes
This commit is contained in:
parent
b99ea5ec6c
commit
51d44f42fd
@ -48,6 +48,7 @@ import org.spongepowered.api.event.cause.Cause;
|
|||||||
import org.spongepowered.api.event.cause.NamedCause;
|
import org.spongepowered.api.event.cause.NamedCause;
|
||||||
import org.spongepowered.api.event.cause.entity.spawn.SpawnCause;
|
import org.spongepowered.api.event.cause.entity.spawn.SpawnCause;
|
||||||
import org.spongepowered.api.event.cause.entity.spawn.SpawnTypes;
|
import org.spongepowered.api.event.cause.entity.spawn.SpawnTypes;
|
||||||
|
import org.spongepowered.api.world.BlockChangeFlag;
|
||||||
import org.spongepowered.api.world.World;
|
import org.spongepowered.api.world.World;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
@ -136,7 +137,7 @@ public abstract class SpongeWorld extends AbstractWorld {
|
|||||||
.world(world.getProperties())
|
.world(world.getProperties())
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
snapshot.restore(true, notifyAndLight);
|
snapshot.restore(true, notifyAndLight ? BlockChangeFlag.ALL : BlockChangeFlag.NONE);
|
||||||
|
|
||||||
// Create the TileEntity
|
// Create the TileEntity
|
||||||
if (block.hasNbtData()) {
|
if (block.hasNbtData()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user