Merge branch 'mc1.15/dev' into mc1.16/dev

This commit is contained in:
JozsefA 2021-04-03 18:45:23 -07:00
commit 3b05e06d35
2 changed files with 6 additions and 13 deletions

View File

@ -58,14 +58,7 @@ public class WrappedChunkProvider extends AbstractChunkProvider {
if (chunks == null)
return null;
WrappedChunk chunk = chunks.get(pos);
if (chunk == null) {
chunk = new WrappedChunk(world, x, z);
chunks.put(pos, chunk);
}
return chunk;
return chunks.computeIfAbsent(pos, $ -> new WrappedChunk(world, x, z));
}
@Override

View File

@ -72,6 +72,11 @@ public class WrappedChunk implements IChunk {
return sections;
}
@Override
public ChunkStatus getStatus() {
return ChunkStatus.LIGHT;
}
@Nullable
@Override
public BlockState setBlockState(BlockPos p_177436_1_, BlockState p_177436_2_, boolean p_177436_3_) {
@ -139,11 +144,6 @@ public class WrappedChunk implements IChunk {
return false;
}
@Override
public ChunkStatus getStatus() {
return null;
}
@Override
public void removeTileEntity(BlockPos p_177425_1_) {