Merge pull request #1 from sk89q/master

Update for BlockChangeFlags change
Dieser Commit ist enthalten in:
SlimSoftware 2017-12-18 20:03:08 +01:00 committet von GitHub
Commit ea333ef02b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -43,7 +43,7 @@ import org.spongepowered.api.data.property.block.GroundLuminanceProperty;
import org.spongepowered.api.data.property.block.SkyLuminanceProperty; import org.spongepowered.api.data.property.block.SkyLuminanceProperty;
import org.spongepowered.api.entity.EntityType; import org.spongepowered.api.entity.EntityType;
import org.spongepowered.api.entity.EntityTypes; 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 org.spongepowered.api.world.World;
import javax.annotation.Nullable; import javax.annotation.Nullable;
@ -129,7 +129,7 @@ public abstract class SpongeWorld extends AbstractWorld {
.world(world.getProperties()) .world(world.getProperties())
.build(); .build();
snapshot.restore(true, notifyAndLight ? BlockChangeFlag.ALL : BlockChangeFlag.NONE); snapshot.restore(true, notifyAndLight ? BlockChangeFlags.ALL : BlockChangeFlags.NONE);
// Create the TileEntity // Create the TileEntity
if (block.hasNbtData()) { if (block.hasNbtData()) {