fix an error when loading a blueprint with invalid mappings

This commit is contained in:
Hea3veN 2015-04-16 19:45:36 -03:00
parent cd38b3b134
commit c432ebd2e5

View file

@ -10,6 +10,7 @@ package buildcraft.api.blueprints;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet;
import org.apache.logging.log4j.Level; 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 // Then, look at the nbt compound contained in this nbt (even if it's a
// stack) and checks for stacks in it. // 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; String key = (String) keyO;
if (nbt.getTag(key) instanceof NBTTagCompound) { if (nbt.getTag(key) instanceof NBTTagCompound) {