Skip to content

Commit

Permalink
Merge pull request #22 from GTNewHorizons/rename
Browse files Browse the repository at this point in the history
Rename and update gt
  • Loading branch information
boubou19 authored Sep 3, 2024
2 parents 7ac37c0 + 68612ce commit 36def5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 {
Expand Down

0 comments on commit 36def5e

Please sign in to comment.