Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoHuNao committed Jan 10, 2024
1 parent 4ae1c0e commit bb5b232
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb5b232

Please sign in to comment.