From bb5b232b4743d49846e75ffa1efcd371a2a9dd1e Mon Sep 17 00:00:00 2001 From: XiaoHuNao Date: Wed, 10 Jan 2024 23:40:04 +0800 Subject: [PATCH] update --- .../surviving_the_aftermath/common/raid/NetherRaid.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/pancake/surviving_the_aftermath/common/raid/NetherRaid.java b/src/main/java/com/pancake/surviving_the_aftermath/common/raid/NetherRaid.java index c6cc5c0..f5193e3 100644 --- a/src/main/java/com/pancake/surviving_the_aftermath/common/raid/NetherRaid.java +++ b/src/main/java/com/pancake/surviving_the_aftermath/common/raid/NetherRaid.java @@ -106,11 +106,9 @@ public ResourceLocation getRegistryName() { @Override public boolean isCreate() { -// return level.structureManager().getAllStructuresAt(this.centerPos) -// .containsKey(level.registryAccess().registryOrThrow(Registries.STRUCTURE).get(ModStructures.NETHER_RAID)) -// && super.isCreate(); - Structure structure = level.registryAccess().registryOrThrow(Registries.STRUCTURE).get(ModStructures.NETHER_RAID); -// LongSet longs = level.structureManager().getAllStructuresAt(this.centerPos).get(structure); + return level.structureManager().getAllStructuresAt(this.centerPos) + .containsKey(level.registryAccess().registryOrThrow(Registries.STRUCTURE).get(ModStructures.NETHER_RAID)) + && super.isCreate(); } @Override