Remove some unused code (#1521)
This commit is contained in:
1 parent
94a729bae6
commit
1734930f7e
8 files changed
+2
-69
No files matched your search
@@ -83,16 +83,6 @@ public class SpawnOverrides {
|
||||
return level.structureManager().getStructureAt(pos, fortressFeature).isValid();
|
||||
}
|
||||
|
||||
public static boolean isStructureAtPosition(ServerLevel level, StructureType<?> structure, BlockPos pos)
|
||||
{
|
||||
for(StructureStart structureStart : startsForFeature(level, SectionPos.of(pos), structure)) {
|
||||
if (structureStart.getBoundingBox().isInside(pos) && structureStart.isValid()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static List<StructureStart> startsForFeature(ServerLevel level, SectionPos sectionPos, StructureType<?> structure) {
|
||||
Map<Structure, LongSet> allrefs = level.getChunk(sectionPos.x(), sectionPos.z(), ChunkStatus.STRUCTURE_REFERENCES).getAllReferences();
|
||||
List<StructureStart> result = new ArrayList<>();
|
||||
|
||||
Reference in new issue
Block a user