aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-02-26 17:14:29 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-02-26 17:14:29 +1000
commitfe89a9835edc5b10a052cd58669b1826f5b57abd (patch)
tree0d9542b0caa05329c5a5a639897fef742ab4b1f9 /src/Java/gtPlusPlus
parent41eb02602c8a6d5899b3e375572ee9990a5a752b (diff)
downloadGT5-Unofficial-fe89a9835edc5b10a052cd58669b1826f5b57abd.tar.gz
GT5-Unofficial-fe89a9835edc5b10a052cd58669b1826f5b57abd.tar.bz2
GT5-Unofficial-fe89a9835edc5b10a052cd58669b1826f5b57abd.zip
$ Findbugs Fixes.
Diffstat (limited to 'src/Java/gtPlusPlus')
-rw-r--r--src/Java/gtPlusPlus/api/objects/data/AutoMap.java2
-rw-r--r--src/Java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java15
-rw-r--r--src/Java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java1
-rw-r--r--src/Java/gtPlusPlus/core/entity/projectile/EntityToxinball.java4
-rw-r--r--src/Java/gtPlusPlus/core/item/general/ItemAirFilter.java5
-rw-r--r--src/Java/gtPlusPlus/core/item/general/capture/ItemEntityCatcher.java2
-rw-r--r--src/Java/gtPlusPlus/core/material/MaterialGenerator.java18
-rw-r--r--src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java2
-rw-r--r--src/Java/gtPlusPlus/core/util/minecraft/MaterialUtils.java2
-rw-r--r--src/Java/gtPlusPlus/core/world/darkworld/biome/BiomeGenerator_Custom.java73
-rw-r--r--src/Java/gtPlusPlus/core/world/darkworld/biome/Biome_DarkWorld.java2
-rw-r--r--src/Java/gtPlusPlus/core/world/explosions/MiningExplosion.java12
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/gui/CONTAINER_SteamCondenser.java3
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java39
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java2
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java5
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntityGeneratorArray.java2
-rw-r--r--src/Java/gtPlusPlus/xmod/thaumcraft/common/tile/TileFastArcaneAlembic.java7
18 files changed, 55 insertions, 141 deletions
diff --git a/src/Java/gtPlusPlus/api/objects/data/AutoMap.java b/src/Java/gtPlusPlus/api/objects/data/AutoMap.java
index a8d24d36d8..5d5f94a84d 100644
--- a/src/Java/gtPlusPlus/api/objects/data/AutoMap.java
+++ b/src/Java/gtPlusPlus/api/objects/data/AutoMap.java
@@ -52,7 +52,7 @@ public class AutoMap<V> implements Iterable<V>, Cloneable, Serializable {
return mInternalMap.size();
}
- public synchronized int hashcode(){
+ public synchronized int hashCode(){
return mInternalMap.hashCode();
}
diff --git a/src/Java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java b/src/Java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
index 72693e3de7..bba3bd1ad8 100644
--- a/src/Java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
+++ b/src/Java/gtPlusPlus/core/client/model/ModelStaballoyConstruct.java
@@ -11,20 +11,7 @@ import net.minecraft.entity.monster.EntityIronGolem;
@SideOnly(Side.CLIENT)
public class ModelStaballoyConstruct extends ModelIronGolem
{
- /** The head model for the iron golem. */
- public ModelRenderer ironGolemHead;
- /** The body model for the iron golem. */
- public ModelRenderer ironGolemBody;
- /** The right arm model for the iron golem. */
- public ModelRenderer ironGolemRightArm;
- /** The left arm model for the iron golem. */
- public ModelRenderer ironGolemLeftArm;
- /** The left leg model for the Iron Golem. */
- public ModelRenderer ironGolemLeftLeg;
- /** The right leg model for the Iron Golem. */
- public ModelRenderer ironGolemRightLeg;
- private static final String __OBFID = "CL_00000863";
-
+
public ModelStaballoyConstruct()
{
this(0.0F);
diff --git a/src/Java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java b/src/Java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
index 87e325a5bd..6a2b5535e7 100644
--- a/src/Java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
+++ b/src/Java/gtPlusPlus/core/entity/EntityPrimedMiningExplosive.java
@@ -10,7 +10,6 @@ import net.minecraft.world.World;
public class EntityPrimedMiningExplosive extends EntityTNTPrimed
{
/** How long the fuse is */
- public int fuse;
private EntityLivingBase tntPlacedBy;
public EntityPrimedMiningExplosive(final World world){
diff --git a/src/Java/gtPlusPlus/core/entity/projectile/EntityToxinball.java b/src/Java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
index 5fcdc67ed6..f68ef82622 100644
--- a/src/Java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
+++ b/src/Java/gtPlusPlus/core/entity/projectile/EntityToxinball.java
@@ -19,12 +19,8 @@ public abstract class EntityToxinball extends EntityFireball {
protected int entityZ = -1;
private Block block;
private boolean inGround;
- public EntityLivingBase shootingEntity;
private int ticksAlive;
private int ticksInAir;
- public double accelerationX;
- public double accelerationY;
- public double accelerationZ;
public EntityToxinball(World world) {
super(world);
diff --git a/src/Java/gtPlusPlus/core/item/general/ItemAirFilter.java b/src/Java/gtPlusPlus/core/item/general/ItemAirFilter.java
index 1596b5985b..04c5dc68e1 100644
--- a/src/Java/gtPlusPlus/core/item/general/ItemAirFilter.java
+++ b/src/Java/gtPlusPlus/core/item/general/ItemAirFilter.java
@@ -52,6 +52,11 @@ public class ItemAirFilter extends Item {
@Override
public String getItemStackDisplayName(final ItemStack tItem) {
+
+ if (tItem == null) {
+ return "Air Filter";
+ }
+
String itemName = tItem == null ? "Air Filter" : super.getItemStackDisplayName(tItem);
String suffixName = "";
if (tItem.getItemDamage() == 0){
diff --git a/src/Java/gtPlusPlus/core/item/general/capture/ItemEntityCatcher.java b/src/Java/gtPlusPlus/core/item/general/capture/ItemEntityCatcher.java
index a7f80bd244..bc162140b1 100644
--- a/src/Java/gtPlusPlus/core/item/general/capture/ItemEntityCatcher.java
+++ b/src/Java/gtPlusPlus/core/item/general/capture/ItemEntityCatcher.java
@@ -182,7 +182,7 @@ public class ItemEntityCatcher extends Item implements IEntityCatcher {
public void addInformation(ItemStack p_77624_1_, EntityPlayer p_77624_2_, List p_77624_3_, boolean p_77624_4_) {
if (hasEntity(p_77624_1_)){
String mName = NBTUtils.getString(p_77624_1_,"mEntityName");
- if (mName != null && !mName.equals("") && mName != ""){
+ if (mName != null && !mName.equals("")){
p_77624_3_.add(EnumChatFormatting.GRAY+"Contains a "+mName+".");
}
}
diff --git a/src/Java/gtPlusPlus/core/material/MaterialGenerator.java b/src/Java/gtPlusPlus/core/material/MaterialGenerator.java
index fb9cf932cb..14dda50614 100644
--- a/src/Java/gtPlusPlus/core/material/MaterialGenerator.java
+++ b/src/Java/gtPlusPlus/core/material/MaterialGenerator.java
@@ -233,11 +233,23 @@ public class MaterialGenerator {
@SuppressWarnings("unused")
public static void generateOreMaterial(final Material matInfo){
try {
+
+ if (matInfo == null){
+ Logger.DEBUG_MATERIALS("Invalid Material while constructing null material.");
+ return;
+ }
+
final String unlocalizedName = matInfo.getUnlocalizedName();
final String materialName = matInfo.getLocalizedName();
final short[] C = matInfo.getRGBA();
final Integer Colour = Utils.rgbtoHexValue(C[0], C[1], C[2]);
+
+ if (Colour == null){
+ Logger.DEBUG_MATERIALS("Invalid Material while constructing "+materialName+".");
+ return;
+ }
+
int sRadiation = 0;
if (matInfo.vRadiationLevel > 0){
sRadiation = matInfo.vRadiationLevel;
@@ -246,9 +258,7 @@ public class MaterialGenerator {
Item temp;
Block tempBlock;
- if (matInfo == null || Colour == null){
- Logger.DEBUG_MATERIALS("Invalid Material while constructing "+materialName+".");
- }
+
tempBlock = new BlockBaseOre(matInfo, BlockTypes.ORE, Colour.intValue());
@@ -264,7 +274,7 @@ public class MaterialGenerator {
RecipeGen_Ore.generateRecipes(matInfo);
} catch (final Throwable t){
- Logger.MATERIALS("[Error] "+matInfo.getLocalizedName()+" failed to generate.");
+ Logger.MATERIALS("[Error] "+(matInfo != null ? matInfo.getLocalizedName() : "Null Material")+" failed to generate.");
t.printStackTrace();
}
}
diff --git a/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java b/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java
index b16089c0de..f03f213f11 100644
--- a/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java
+++ b/src/Java/gtPlusPlus/core/util/minecraft/EntityUtils.java
@@ -84,7 +84,7 @@ public class EntityUtils {
/**
* Static Version of the method used in {@code doFireDamage(entity, int)} to save memory.
*/
- private static volatile Method dealFireDamage;
+ private static volatile Method dealFireDamage = null;
/**
* Reflective Call to do Fire Damage to an entity (Does not set entity on fire though)
diff --git a/src/Java/gtPlusPlus/core/util/minecraft/MaterialUtils.java b/src/Java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
index 6c15c06b1d..2a392f6f18 100644
--- a/src/Java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
+++ b/src/Java/gtPlusPlus/core/util/minecraft/MaterialUtils.java
@@ -198,7 +198,7 @@ public class MaterialUtils {
catch (IllegalArgumentException | IllegalAccessException e) {
mName = mat.name();
}
- if (mName == null || mName.equals("") || mName == ""){
+ if (mName == null || mName.equals("")){
mName = mat.name();
}
return mName;
diff --git a/src/Java/gtPlusPlus/core/world/darkworld/biome/BiomeGenerator_Custom.java b/src/Java/gtPlusPlus/core/world/darkworld/biome/BiomeGenerator_Custom.java
index 74a67dfc5e..294d61f802 100644
--- a/src/Java/gtPlusPlus/core/world/darkworld/biome/BiomeGenerator_Custom.java
+++ b/src/Java/gtPlusPlus/core/world/darkworld/biome/BiomeGenerator_Custom.java
@@ -22,78 +22,7 @@ public class BiomeGenerator_Custom extends BiomeDecorator {
/** The world the BiomeDecorator is currently decorating */
public World currentWorld;
/** The Biome Decorator's random number generator. */
- public Random randomGenerator;
- /** The X-coordinate of the chunk currently being decorated */
- public int chunk_X;
- /** The Z-coordinate of the chunk currently being decorated */
- public int chunk_Z;
- /** The clay generator. */
- public WorldGenerator clayGen = new WorldGenClay(4);
- /** The sand generator. */
- public WorldGenerator sandGen;
- /** The gravel generator. */
- public WorldGenerator gravelAsSandGen;
- /** The dirt generator. */
- public WorldGenerator dirtGen;
- public WorldGenerator gravelGen;
- public WorldGenerator coalGen;
- public WorldGenerator ironGen;
- /** Field that holds gold WorldGenMinable */
- public WorldGenerator goldGen;
- /** Field that holds redstone WorldGenMinable */
- public WorldGenerator redstoneGen;
- /** Field that holds diamond WorldGenMinable */
- public WorldGenerator diamondGen;
- /** Field that holds Lapis WorldGenMinable */
- public WorldGenerator lapisGen;
- public WorldGenFlowers yellowFlowerGen;
- /** Field that holds mushroomBrown WorldGenFlowers */
- public WorldGenerator mushroomBrownGen;
- /** Field that holds mushroomRed WorldGenFlowers */
- public WorldGenerator mushroomRedGen;
- /** Field that holds big mushroom generator */
- public WorldGenerator bigMushroomGen;
- /** Field that holds WorldGenReed */
- public WorldGenerator reedGen;
- /** Field that holds WorldGenCactus */
- public WorldGenerator cactusGen;
- /** The water lily generation! */
- public WorldGenerator waterlilyGen;
- /** Amount of waterlilys per chunk. */
- public int waterlilyPerChunk;
- /** The number of trees to attempt to generate per chunk. Up to 10 in forests, none in deserts. */
- public int treesPerChunk;
- /**
- * The number of yellow flower patches to generate per chunk. The game generates much less than this number, since
- * it attempts to generate them at a random altitude.
- */
- public int flowersPerChunk;
- /** The amount of tall grass to generate per chunk. */
- public int grassPerChunk;
- /** The number of dead bushes to generate per chunk. Used in deserts and swamps. */
- public int deadBushPerChunk;
- /**
- * The number of extra mushroom patches per chunk. It generates 1/4 this number in brown mushroom patches, and 1/8
- * this number in red mushroom patches. These mushrooms go beyond the default base number of mushrooms.
- */
- public int mushroomsPerChunk;
- /** The number of reeds to generate per chunk. Reeds won't generate if the randomly selected placement is unsuitable. */
- public int reedsPerChunk;
- /** The number of cactus plants to generate per chunk. Cacti only work on sand. */
- public int cactiPerChunk;
- /** The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater. */
- public int sandPerChunk;
- /**
- * The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater. There
- * appear to be two separate fields for this.
- */
- public int sandPerChunk2;
- /** The number of clay patches to generate per chunk. Only generates when part of it is underwater. */
- public int clayPerChunk;
- /** Amount of big mushrooms per chunk */
- public int bigMushroomsPerChunk;
- /** True if decorator should generate surface lava & water */
- public boolean generateLakes;
+ public Random randomGenerator;
public WorldGenerator fluoriteGen;
diff --git a/src/Java/gtPlusPlus/core/world/darkworld/biome/Biome_DarkWorld.java b/src/Java/gtPlusPlus/core/world/darkworld/biome/Biome_DarkWorld.java
index 92f3f43d95..f912fb7c6a 100644
--- a/src/Java/gtPlusPlus/core/world/darkworld/biome/Biome_DarkWorld.java
+++ b/src/Java/gtPlusPlus/core/world/darkworld/biome/Biome_DarkWorld.java
@@ -99,7 +99,7 @@ public class Biome_DarkWorld {
if (mTempList != null){
mTempList[CORE.DARKBIOME_ID] = this;
mInternalBiomeList.set(null, mTempList);
- if (mClone != mInternalBiomeList && mClone.hashCode() != mInternalBiomeList.hashCode()){
+ if (mTempList != mInternalBiomeList.get(null)){
ReflectionUtils.setFinalStatic(mInternalBiomeList, mTempList);
Logger.REFLECTION("Set Biome ID for Dark World Biome internally in 'biomeList' field from "+BiomeGenBase.class.getCanonicalName()+".");
return true;
diff --git a/src/Java/gtPlusPlus/core/world/explosions/MiningExplosion.java b/src/Java/gtPlusPlus/core/world/explosions/MiningExplosion.java
index bcbb16a3b6..ead327d85a 100644
--- a/src/Java/gtPlusPlus/core/world/explosions/MiningExplosion.java
+++ b/src/Java/gtPlusPlus/core/world/explosions/MiningExplosion.java
@@ -16,20 +16,10 @@ import net.minecraft.util.*;
import net.minecraft.world.*;
public class MiningExplosion extends Explosion {
- /** whether or not the explosion sets fire to blocks around it */
- public boolean isFlaming = false;
- /** whether or not this explosion spawns smoke particles */
- public boolean isSmoking = true;
private final int field_77289_h = 16;
private final Random explosionRNG = new XSTR();
private final World worldObj;
- public double explosionX;
- public double explosionY;
- public double explosionZ;
- public Entity exploder;
- public float explosionSize;
- /** A list of ChunkPositions of blocks affected by this explosion */
- public List<ChunkPosition> affectedBlockPositions = new ArrayList<>();
+
private final Map<Entity, Vec3> field_77288_k = new HashMap<>();
public MiningExplosion(final World worldObj, final Entity entityObj, final double x, final double y, final double z, final float size)
{
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/gui/CONTAINER_SteamCondenser.java b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/CONTAINER_SteamCondenser.java
index 87316c1203..4d24ffca5c 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/gui/CONTAINER_SteamCondenser.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/gui/CONTAINER_SteamCondenser.java
@@ -44,7 +44,7 @@ public class CONTAINER_SteamCondenser extends GT_ContainerMetaTile_Machine
public int mSteamAmount = 0;
public int mProcessingEnergy = 0;
public int mTemperature = 2;
- private final int mSteamCapacity;
+ public int mSteamCapacity;
public long mTickingTime = ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).RI;
@Override
@@ -55,6 +55,7 @@ public class CONTAINER_SteamCondenser extends GT_ContainerMetaTile_Machine
return;
}
this.mTemperature = ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mTemperature;
+ this.mSteamCapacity = (int) ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).maxSteamStore();
this.mProcessingEnergy = ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mProcessingEnergy;
this.mSteamAmount = (((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mSteam == null ? 0 : ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mSteam.amount);
this.mWaterAmount = (((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mFluid == null ? 0 : ((GregtechMetaBoilerBase)this.mTileEntity.getMetaTileEntity()).mFluid.amount);
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java b/src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java
index d5ac473543..a0dc43de1b 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/world/GTPP_Worldgen_GT_Ore_Layer.java
@@ -68,18 +68,18 @@ extends GTPP_Worldgen {
this.mWeight = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "RandomWeight", aWeight));
this.mDensity = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Density", aDensity));
this.mSize = ((short) Math.max(1, sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "Size", aSize)));
- /* this.mPrimaryMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OrePrimaryLayer", aPrimary.mMetaItemSubID));
- this.mSecondaryMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSecondaryLayer", aSecondary.mMetaItemSubID));
- this.mBetweenMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSporadiclyInbetween", aBetween.mMetaItemSubID));
- this.mSporadicMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSporaticlyAround", aSporadic.mMetaItemSubID));
+ /*this.mPrimaryMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OrePrimaryLayer", aPrimary.mMetaItemSubID));
+ this.mSecondaryMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSecondaryLayer", aSecondary.mMetaItemSubID));
+ this.mBetweenMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSporadiclyInbetween", aBetween.mMetaItemSubID));
+ this.mSporadicMeta = ((short) sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "OreSporaticlyAround", aSporadic.mMetaItemSubID));
*/this.mRestrictBiome = sCustomWorldgenFile.get(aTextWorldgen + this.mWorldGenName, "RestrictToBiomeName", "None");
if (this.mEnabled) {
- GT_Achievements.registerOre(GregTech_API.sGeneratedMaterials[(mPrimaryMeta % 1000)], aMinY, aMaxY, aWeight, false, false, false);
+ /* GT_Achievements.registerOre(GregTech_API.sGeneratedMaterials[(mPrimaryMeta % 1000)], aMinY, aMaxY, aWeight, false, false, false);
GT_Achievements.registerOre(GregTech_API.sGeneratedMaterials[(mSecondaryMeta % 1000)], aMinY, aMaxY, aWeight, false, false, false);
GT_Achievements.registerOre(GregTech_API.sGeneratedMaterials[(mBetweenMeta % 1000)], aMinY, aMaxY, aWeight, false, false, false);
GT_Achievements.registerOre(GregTech_API.sGeneratedMaterials[(mSporadicMeta % 1000)], aMinY, aMaxY, aWeight, false, false, false);
- sWeight += this.mWeight;
+ */ sWeight += this.mWeight;
}
}
@@ -141,20 +141,25 @@ extends GTPP_Worldgen {
}
}
- if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK){
- try {
- return (boolean) mSetOre.invoke(world, x, y, z, secondarymeta, bool);
- }
- catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException t) {
- return false;
+ if (mSetOre != null) {
+ if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK){
+ try {
+ return (boolean) mSetOre.invoke(world, x, y, z, secondarymeta, bool);
+ }
+ catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException t) {
+ return false;
+ }
+ }
+ else {
+ try {
+ return (boolean) mSetOre.invoke(world, x, y, z, secondarymeta);
+ }
+ catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException t) {
+ return false;}
}
}
else {
- try {
- return (boolean) mSetOre.invoke(world, x, y, z, secondarymeta);
- }
- catch (IllegalArgumentException | IllegalAccessException | InvocationTargetException t) {
- return false;}
+ return false;
}
}
} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java b/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java
index 84cf6067d1..695e226a49 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java
@@ -49,7 +49,7 @@ public class AC_Helper_Utils {
public final static boolean removeCrafter(GT4Entity_AutoCrafter AC) {
if (!sAutocrafterMap.isEmpty()){
if (sAutocrafterMap.containsValue(AC)){
- sAutocrafterMap.remove(AC);
+ sAutocrafterMap.remove(getIDByCrafter(AC));
return true;
}
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
index a727124771..954d81a3fc 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaWirelessCharger.java
@@ -447,11 +447,12 @@ public class GregtechMetaWirelessCharger extends GregtechMetaTileEntity {
}
public double getDistanceBetweenTwoPositions(BlockPos objectA, BlockPos objectB){
- int[] objectArray1 = new int[]{objectA.xPos, objectA.yPos, objectA.zPos};
- int[] objectArray2 = new int[]{objectB.xPos, objectB.yPos, objectB.zPos};
if (objectA == null || objectB == null){
return 0f;
}
+ int[] objectArray1 = new int[]{objectA.xPos, objectA.yPos, objectA.zPos};
+ int[] objectArray2 = new int[]{objectB.xPos, objectB.yPos, objectB.zPos};
+
final double distance = Math.sqrt(
(objectArray2[0]-objectArray1[0])*(objectArray2[0]-objectArray1[0])
+(objectArray2[1]-objectArray1[1])*(objectArray2[1]-objectArray1[1])
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntityGeneratorArray.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntityGeneratorArray.java
index 6976a7f560..8f210919b6 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntityGeneratorArray.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntityGeneratorArray.java
@@ -21,8 +21,6 @@ import net.minecraftforge.fluids.FluidStack;
public class GregtechMetaTileEntityGeneratorArray extends GregtechMeta_MultiBlockBase {
- GT_Recipe mLastRecipe;
-
public GregtechMetaTileEntityGeneratorArray(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
}
diff --git a/src/Java/gtPlusPlus/xmod/thaumcraft/common/tile/TileFastArcaneAlembic.java b/src/Java/gtPlusPlus/xmod/thaumcraft/common/tile/TileFastArcaneAlembic.java
index b89f9a4229..89ea5c7daa 100644
--- a/src/Java/gtPlusPlus/xmod/thaumcraft/common/tile/TileFastArcaneAlembic.java
+++ b/src/Java/gtPlusPlus/xmod/thaumcraft/common/tile/TileFastArcaneAlembic.java
@@ -17,13 +17,6 @@ import thaumcraft.common.config.ConfigBlocks;
import thaumcraft.common.tiles.TileAlembic;
public class TileFastArcaneAlembic extends TileAlembic {
- public Aspect aspect;
- public Aspect aspectFilter;
- public int amount;
- public int maxAmount;
- public int facing;
- public boolean aboveAlembic;
- public boolean aboveFurnace;
ForgeDirection fd;
public TileFastArcaneAlembic() {