]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/common/StructureProcessor.java
Setup for 1.16.3 Fabric
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / common / StructureProcessor.java
index b63e0ebdf033040cd71cd50af270c5e3f2dd49ec..86c7dba8f7694c4dba755cd088af36c15bb24d0c 100644 (file)
@@ -24,8 +24,7 @@ class StructureProcessor {
 
     private final BoundingBoxCache boundingBoxCache;
 
-    private void addStructures(BoundingBoxType type, Map<String, StructureStart> structureMap) {
-        StructureStart structureStart = structureMap.get(type.getName());
+    private void addStructures(BoundingBoxType type, StructureStart<?> structureStart) {
         if (structureStart == null) return;
 
         BlockBox bb = structureStart.getBoundingBox();
@@ -47,9 +46,9 @@ class StructureProcessor {
         return BoundingBoxCuboid.from(min, max, type);
     }
 
-    void process(Map<String, StructureStart> structures) {
+    void process(Map<String, StructureStart<?>> structures) {
         if (structures.size() > 0) {
-            supportedStructures.forEach(type -> addStructures(type, structures));
+            supportedStructures.forEach(type -> addStructures(type, structures.get(type.getName())));
         }
     }
 }