aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/core/item/general
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-06-18 16:55:58 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-06-18 16:55:58 +1000
commit2615992e7d0d4ed3ac205800be71c831029b2dc5 (patch)
tree7e98798c2fe5f06a4c2d721740ce35247995847d /src/Java/miscutil/core/item/general
parent5054f6c994018913ef19b094a28636dd7b82a58c (diff)
downloadGT5-Unofficial-2615992e7d0d4ed3ac205800be71c831029b2dc5.tar.gz
GT5-Unofficial-2615992e7d0d4ed3ac205800be71c831029b2dc5.tar.bz2
GT5-Unofficial-2615992e7d0d4ed3ac205800be71c831029b2dc5.zip
~More Refactoring
Does it ever end?
Diffstat (limited to 'src/Java/miscutil/core/item/general')
-rw-r--r--src/Java/miscutil/core/item/general/fuelrods/FuelRod_Base.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Java/miscutil/core/item/general/fuelrods/FuelRod_Base.java b/src/Java/miscutil/core/item/general/fuelrods/FuelRod_Base.java
index 56fe598a3b..20d6fcd08e 100644
--- a/src/Java/miscutil/core/item/general/fuelrods/FuelRod_Base.java
+++ b/src/Java/miscutil/core/item/general/fuelrods/FuelRod_Base.java
@@ -43,11 +43,11 @@ public class FuelRod_Base extends Item{
tempvar = 2500;
}
- if (fuelType == "Uranium"){
+ else if (fuelType == "Uranium"){
tempvar = 5000;
}
- if (fuelType == "Plutonium"){
+ else if (fuelType == "Plutonium"){
tempvar = 10000;
}
@@ -193,9 +193,9 @@ public class FuelRod_Base extends Item{
@Override
public void onUpdate(ItemStack itemStack, World par2World, Entity par3Entity, int par4, boolean par5) {
itemStack.stackTagCompound = new NBTTagCompound();
- itemStack.stackTagCompound.setInteger("fuelRemaining", fuelRemaining);
+ itemStack.stackTagCompound.setInteger("fuelRemaining", getFuelRemaining());
itemStack.stackTagCompound.setInteger("maximumFuel", maximumFuel);
- itemStack.stackTagCompound.setFloat("heat", heat);
+ itemStack.stackTagCompound.setFloat("heat", getHeat());
itemStack.stackTagCompound.setFloat("maxHeat", getMaxHeat());
itemStack.stackTagCompound.setString("fuelType", fuelType);