[1.21.1] ModLoading cleanup and optimisations (#10052)

This commit is contained in:
Paint_Ninja authored and GitHub committed 2024-08-16 22:49:11 +01:00
1 parent f106ff0c21
commit 9714512c31
101 files changed
+837 -841

No files matched your search

@@ -514,12 +514,12 @@ public class GameData {
throw new IllegalStateException("Could not get holder for " + key + " " + obj);
}
obj.matchingStates().forEach((state) -> {
for (BlockState state : obj.matchingStates()) {
var oldType = map.put(state, holder);
if (oldType != null) {
throw new IllegalStateException(String.format(Locale.ENGLISH, "Point of interest types %s and %s both list %s in their blockstates, this is not allowed. Blockstates can only have one point of interest type each.", oldType, obj, state));
}
});
}
}
@Override