mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
[1.21.1] ModLoading cleanup and optimisations (#10052)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user