geforkt von Mirrors/FastAsyncWorldEdit
Fix #1314
Dieser Commit ist enthalten in:
Ursprung
e9adf0f30d
Commit
0fcf996c78
@ -13,6 +13,7 @@ import com.sk89q.worldedit.regions.CuboidRegion;
|
|||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import com.sk89q.worldedit.world.RegenOptions;
|
import com.sk89q.worldedit.world.RegenOptions;
|
||||||
import com.sk89q.worldedit.world.biome.BiomeType;
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
||||||
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||||
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||||
import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap;
|
import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap;
|
||||||
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap;
|
||||||
@ -287,14 +288,13 @@ public abstract class Regenerator<IChunkAccess, ProtoChunk extends IChunkAccess,
|
|||||||
boolean hasBiome = options.hasBiomeType();
|
boolean hasBiome = options.hasBiomeType();
|
||||||
BiomeType biome = options.getBiomeType();
|
BiomeType biome = options.getBiomeType();
|
||||||
for (BlockVector3 vec : region) {
|
for (BlockVector3 vec : region) {
|
||||||
target.setBlock(vec, source.getBlock(vec));
|
BaseBlock block = source.getFullBlock(vec);
|
||||||
|
target.setBlock(vec, block);
|
||||||
if (hasBiome) {
|
if (hasBiome) {
|
||||||
target.setBiome(vec, biome);
|
target.setBiome(vec, biome);
|
||||||
} else if (genbiomes) {
|
} else if (genbiomes) {
|
||||||
target.setBiome(vec, source.getBiome(vec));
|
target.setBiome(vec, source.getBiome(vec));
|
||||||
}
|
}
|
||||||
// realExtent.setSkyLight(vec, extent.getSkyLight(vec));
|
|
||||||
// realExtent.setBlockLight(vec, extent.getBrightness(vec));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren