From c432ebd2e50a7b2f4ed25b18b435910fb5ca45ae Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Thu, 16 Apr 2015 19:45:36 -0300 Subject: [PATCH] fix an error when loading a blueprint with invalid mappings --- api/buildcraft/api/blueprints/MappingRegistry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/buildcraft/api/blueprints/MappingRegistry.java b/api/buildcraft/api/blueprints/MappingRegistry.java index be9d2b8a..c458c177 100755 --- a/api/buildcraft/api/blueprints/MappingRegistry.java +++ b/api/buildcraft/api/blueprints/MappingRegistry.java @@ -10,6 +10,7 @@ package buildcraft.api.blueprints; import java.util.ArrayList; import java.util.HashMap; +import java.util.HashSet; import org.apache.logging.log4j.Level; @@ -211,7 +212,7 @@ public class MappingRegistry { // Then, look at the nbt compound contained in this nbt (even if it's a // stack) and checks for stacks in it. - for (Object keyO : nbt.func_150296_c()) { + for (Object keyO : new HashSet(nbt.func_150296_c())) { String key = (String) keyO; if (nbt.getTag(key) instanceof NBTTagCompound) {