Skip to content

Commit

Permalink
fix: adapt 1.20.70
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Mar 18, 2024
1 parent f35bd05 commit 82479e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ms/kevi/plotplugin/generator/PlotStage.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public class PlotStage extends GenerateStage {
@Override
public void apply(ChunkGenerateContext chunkGenerateContext) {
final IChunk chunk = chunkGenerateContext.getChunk();
chunk.setChunkState(ChunkState.FINISHED);
LevelProvider provider = chunk.getProvider();
Level level = provider.getLevel();
if (level == null) return;
Expand All @@ -31,6 +30,7 @@ public void apply(ChunkGenerateContext chunkGenerateContext) {
final Schematic schematic = plotManager.getPlotSchematic().getSchematic();
if (schematic != null)
placeChunkSchematic(plotManager, schematic, chunk, shapes, GENERATE_ALLOWED, null, null, null, null);
chunk.setChunkState(ChunkState.POPULATED);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class PlotLevelSettings {

private int firstLayerBlockHash = BlockBedrock.PROPERTIES.getDefaultState().blockStateHash();
private int middleLayerBlockHash = BlockDirt.PROPERTIES.getDefaultState().blockStateHash();
private int lastLayerBlockHash = BlockGrass.PROPERTIES.getDefaultState().blockStateHash();
private int lastLayerBlockHash = BlockGrassBlock.PROPERTIES.getDefaultState().blockStateHash();
private int wallFillingBlockHash = BlockStone.PROPERTIES.getDefaultState().blockStateHash();
private int wallPlotBlockHash = BlockStoneBlockSlab.PROPERTIES.getBlockState(CommonBlockProperties.MINECRAFT_VERTICAL_HALF.createValue(MinecraftVerticalHalf.BOTTOM)).blockStateHash();
private int claimPlotBlockHash = BlockStoneBlockSlab2.PROPERTIES.getBlockState(CommonBlockProperties.MINECRAFT_VERTICAL_HALF.createValue(MinecraftVerticalHalf.BOTTOM)).blockStateHash();
Expand Down

0 comments on commit 82479e3

Please sign in to comment.