mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Fix dark steel repair not using oredict
This commit is contained in:
1 parent
f9c0d9d348
commit
50877189a2
1 file changed
+3
-6
@@ -12,7 +12,9 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.event.AnvilUpdateEvent;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import com.enderio.core.common.util.OreDictionaryHelper;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
@@ -77,16 +79,11 @@ public class DarkSteelRecipeManager {
|
||||
return;
|
||||
}
|
||||
|
||||
if(evt.left.getItem() instanceof IDarkSteelItem &&
|
||||
evt.right.getItem() == EnderIO.itemAlloy &&
|
||||
evt.right.getItemDamage() == Alloy.DARK_STEEL.ordinal()) {
|
||||
|
||||
if(evt.left.getItem() instanceof IDarkSteelItem && OreDictionaryHelper.hasName(evt.right, Alloy.DARK_STEEL.oreIngot)) {
|
||||
handleRepair(evt);
|
||||
|
||||
} else {
|
||||
handleUpgrade(evt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void handleRepair(AnvilUpdateEvent evt) {
|
||||
|
||||
Reference in new issue
Block a user