mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-02 20:45:27 +02:00
Minor sponge fixes
This commit is contained in:
@@ -8,8 +8,6 @@ import com.plotsquared.sponge.SpongeMain;
|
||||
import com.plotsquared.sponge.util.SpongeUtil;
|
||||
import java.util.List;
|
||||
import org.spongepowered.api.block.BlockState;
|
||||
import org.spongepowered.api.event.cause.Cause;
|
||||
import org.spongepowered.api.event.cause.NamedCause;
|
||||
import org.spongepowered.api.world.World;
|
||||
import org.spongepowered.api.world.extent.ImmutableBiomeArea;
|
||||
import org.spongepowered.api.world.extent.MutableBlockVolume;
|
||||
@@ -37,8 +35,6 @@ public class SpongeAugmentedGenerator implements GenerationPopulator {
|
||||
return generator;
|
||||
}
|
||||
|
||||
private Cause cause = Cause.of(NamedCause.of("PlotSquared", SpongeMain.THIS));
|
||||
|
||||
@Override
|
||||
public void populate(World world, MutableBlockVolume terrain, ImmutableBiomeArea biome) {
|
||||
Vector3i min = terrain.getBlockMin();
|
||||
@@ -49,7 +45,7 @@ public class SpongeAugmentedGenerator implements GenerationPopulator {
|
||||
AugmentedUtils.generate(world.getName(), cx, cz, new DelegateLocalBlockQueue(null) {
|
||||
@Override
|
||||
public boolean setBlock(int x, int y, int z, int id, int data) {
|
||||
terrain.setBlock(bx + x, y, bz + z, SpongeUtil.getBlockState(id, data), cause);
|
||||
terrain.setBlock(bx + x, y, bz + z, SpongeUtil.getBlockState(id, data), SpongeMain.CAUSE);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user