mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Fix carver crash #490
This commit is contained in:
parent
fd65e7db17
commit
a43f5d2022
1 changed files with 4 additions and 1 deletions
|
@ -167,7 +167,10 @@ public class CloudCarver extends CaveCarver {
|
|||
MutableBoolean replacedGrassy
|
||||
) {
|
||||
if (super.carveAtPoint(context, config, chunk, posToBiome, mask, pos, tmp, aquiferSampler, replacedGrassy)) {
|
||||
topWrittenPositions.remove(tmp.set(pos).move(Direction.DOWN).asLong());
|
||||
tmp.set(pos).move(Direction.DOWN);
|
||||
if (!topWrittenPositions.isEmpty()) {
|
||||
topWrittenPositions.remove(tmp.asLong());
|
||||
}
|
||||
topWrittenPositions.add(pos.asLong());
|
||||
if (chunk.getBlockState(tmp).isOf(UBlocks.SOGGY_CLOUD)) {
|
||||
chunk.setBlockState(tmp, UBlocks.CLOUD.getDefaultState(), false);
|
||||
|
|
Loading…
Reference in a new issue