From 82479e3abf88628f66db6cb1d8192268aabd3005 Mon Sep 17 00:00:00 2001 From: CoolLoong <1542536763@qq.com> Date: Mon, 18 Mar 2024 20:10:52 +0800 Subject: [PATCH] fix: adapt 1.20.70 --- src/main/java/ms/kevi/plotplugin/generator/PlotStage.java | 2 +- src/main/java/ms/kevi/plotplugin/util/PlotLevelSettings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ms/kevi/plotplugin/generator/PlotStage.java b/src/main/java/ms/kevi/plotplugin/generator/PlotStage.java index 39f1493..b461fd5 100644 --- a/src/main/java/ms/kevi/plotplugin/generator/PlotStage.java +++ b/src/main/java/ms/kevi/plotplugin/generator/PlotStage.java @@ -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; @@ -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 diff --git a/src/main/java/ms/kevi/plotplugin/util/PlotLevelSettings.java b/src/main/java/ms/kevi/plotplugin/util/PlotLevelSettings.java index a3a08b8..51e86c4 100644 --- a/src/main/java/ms/kevi/plotplugin/util/PlotLevelSettings.java +++ b/src/main/java/ms/kevi/plotplugin/util/PlotLevelSettings.java @@ -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();