From 68612ce86fd642db643875946bc707122fd93166 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Tue, 3 Sep 2024 15:15:50 +0200 Subject: [PATCH] rename --- dependencies.gradle | 2 +- .../crossmod/gregtech/CrossGregTech.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 4dd3d4b..42310ee 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -15,7 +15,7 @@ dependencies { compileOnly("com.github.GTNewHorizons:OpenComputers:1.10.10-GTNH:dev") { transitive = false } - compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.45.153:dev") { + compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.56:dev") { transitive = false } diff --git a/src/main/java/shedar/mods/ic2/nuclearcontrol/crossmod/gregtech/CrossGregTech.java b/src/main/java/shedar/mods/ic2/nuclearcontrol/crossmod/gregtech/CrossGregTech.java index 8522305..c68d6f2 100644 --- a/src/main/java/shedar/mods/ic2/nuclearcontrol/crossmod/gregtech/CrossGregTech.java +++ b/src/main/java/shedar/mods/ic2/nuclearcontrol/crossmod/gregtech/CrossGregTech.java @@ -4,8 +4,8 @@ import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.registry.GameRegistry; -import gregtech.api.items.GT_RadioactiveCellIC_Item; -import gregtech.api.items.GT_RadioactiveCell_Item; +import gregtech.api.items.ItemRadioactiveCell; +import gregtech.api.items.ItemRadioactiveCellIC; import shedar.mods.ic2.nuclearcontrol.IC2NuclearControl; import shedar.mods.ic2.nuclearcontrol.crossmod.ModLib; @@ -32,11 +32,11 @@ public int getNuclearCellTimeLeft(ItemStack stack) { return 0; } try { - if (stack.getItem() instanceof GT_RadioactiveCellIC_Item) { + if (stack.getItem() instanceof ItemRadioactiveCellIC) { String rodName = stack.getUnlocalizedName(); - GT_RadioactiveCell_Item rod = (GT_RadioactiveCell_Item) GameRegistry.findItem(ModLib.GT, rodName); + ItemRadioactiveCell rod = (ItemRadioactiveCell) GameRegistry.findItem(ModLib.GT, rodName); int maxDamage = rod.getMaxDamageEx(); - int currentDmg = GT_RadioactiveCellIC_Item.getDurabilityOfStack(stack); + int currentDmg = ItemRadioactiveCellIC.getDurabilityOfStack(stack); int dmg = maxDamage - currentDmg; return (dmg > 0) ? dmg : 0; } else {