Fix road schematics

This commit is contained in:
Sauilitired 2018-12-26 17:05:37 +01:00
parent 1d08f4d4ff
commit 2ebb7d11a8
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678
2 changed files with 6 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public class BukkitPlotGenerator extends ChunkGenerator
return result.getCd();
}
public void generate(World world, ScopedLocalBlockQueue result) {
private void generate(World world, ScopedLocalBlockQueue result) {
// Load if improperly loaded
if (!this.loaded) {
String name = world.getName();

View File

@ -6,6 +6,7 @@ import com.github.intellectualsites.plotsquared.plot.object.Location;
import com.github.intellectualsites.plotsquared.plot.object.PlotBlock;
import com.github.intellectualsites.plotsquared.plot.util.MainUtil;
import com.github.intellectualsites.plotsquared.plot.util.block.ScopedLocalBlockQueue;
import com.sk89q.worldedit.world.block.BaseBlock;
import lombok.Getter;
import lombok.Setter;
import org.bukkit.Chunk;
@ -117,6 +118,10 @@ public class GenChunk extends ScopedLocalBlockQueue {
return true;
}
@Override public boolean setBlock(int x, int y, int z, BaseBlock id) {
return this.setBlock(x, y, z, PlotBlock.get(id.getBlockType().getId()));
}
@Override public PlotBlock getBlock(int x, int y, int z) {
int i = MainUtil.CACHE_I[y][x][z];
if (result == null) {