9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2025-12-27 19:09:09 +00:00

fix an issue

This commit is contained in:
XiaoMoMi
2024-10-05 21:49:56 +08:00
parent b781e6f312
commit 1c6dc96a7b
2 changed files with 2 additions and 2 deletions

View File

@@ -989,7 +989,7 @@ public abstract class AbstractRequirementManager<T> implements RequirementManage
Optional<CustomCropsChunk> optionalChunk = customCropsWorld.getLoadedChunk(tempPos3.toChunkPos());
if (optionalChunk.isPresent()) {
CustomCropsChunk chunk = optionalChunk.get();
Optional<CustomCropsBlockState> optionalState = chunk.getBlockState(pos3);
Optional<CustomCropsBlockState> optionalState = chunk.getBlockState(tempPos3);
if (optionalState.isPresent() && optionalState.get().type() instanceof ScarecrowBlock) {
if (advanced) ActionManager.trigger(context, actions);
return false;