Resolved Bug: #0823 - Silicon with Quarts Texture

This commit is contained in:
AlgorithmX2
2014-08-08 01:41:44 -05:00
parent a938bbb430
commit 2c2f880783
+6 -1
View File
@@ -44,6 +44,8 @@ import appeng.items.AEBaseItem;
import appeng.util.InventoryAdaptor; import appeng.util.InventoryAdaptor;
import appeng.util.Platform; import appeng.util.Platform;
import com.google.common.collect.ImmutableSet;
public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule
{ {
@@ -168,7 +170,7 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
public void unduplicate() public void unduplicate()
{ {
for (MaterialType mt : dmgToMaterial.values()) for (MaterialType mt : ImmutableSet.copyOf( dmgToMaterial.values() ))
{ {
if ( mt.getOreName() != null ) if ( mt.getOreName() != null )
{ {
@@ -203,6 +205,9 @@ public class ItemMultiMaterial extends AEBaseItem implements IStorageComponent,
} }
else else
{ {
if ( mt.itemInstance == this )
dmgToMaterial.remove( mt.damageValue );
mt.itemInstance = replacement.getItem(); mt.itemInstance = replacement.getItem();
mt.damageValue = replacement.getItemDamage(); mt.damageValue = replacement.getItemDamage();
} }