diff options
author | Technus <daniel112092@gmail.com> | 2017-12-14 21:37:09 +0100 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2017-12-14 21:37:09 +0100 |
commit | c780d2e401f4f9ae749c80a1c91be9104ecedf1e (patch) | |
tree | 2b50e14c5b72f9a0d72ad1e53241a2c8f64b915c | |
parent | f80d0e3467231d67d3da303ca2c1385996febb2a (diff) | |
download | GT5-Unofficial-c780d2e401f4f9ae749c80a1c91be9104ecedf1e.tar.gz GT5-Unofficial-c780d2e401f4f9ae749c80a1c91be9104ecedf1e.tar.bz2 GT5-Unofficial-c780d2e401f4f9ae749c80a1c91be9104ecedf1e.zip |
Fix minor bug
4 files changed, 5 insertions, 11 deletions
diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java b/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java index c455506435..4b5c581c6f 100644 --- a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java +++ b/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalDefinition.java @@ -1,22 +1,17 @@ package com.github.technus.tectech.elementalMatter.core.templates; -import com.github.technus.tectech.Util; import com.github.technus.tectech.elementalMatter.core.containers.cElementalDefinitionStack; import com.github.technus.tectech.elementalMatter.core.interfaces.iElementalDefinition; import com.github.technus.tectech.elementalMatter.core.interfaces.iHasElementalDefinition; import net.minecraft.nbt.NBTTagCompound; import java.lang.reflect.Method; -import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE; import static com.github.technus.tectech.elementalMatter.definitions.primitive.cPrimitiveDefinition.nbtE__; -import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*; -import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.SCAN_GET_MASS; -import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.SCAN_GET_TIMESPAN_INFO; /** * Created by danie_000 on 23.01.2017. @@ -59,7 +54,7 @@ public abstract class cElementalDefinition implements iElementalDefinition { return compareInnerContentsWithAmounts(getSubParticles().values(), o.getSubParticles().values()); } - public final int compareClassID(iElementalDefinition obj) { + private int compareClassID(iElementalDefinition obj) { return ((int) getClassType()) - obj.getClassType(); } diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java b/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java index 08cf157afb..558ad3d4a1 100644 --- a/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java +++ b/src/main/java/com/github/technus/tectech/elementalMatter/core/templates/cElementalPrimitive.java @@ -222,6 +222,10 @@ public abstract class cElementalPrimitive extends cElementalDefinition { return compareClassID(o); } + private int compareClassID(iElementalDefinition obj) { + return ((int) getClassType()) - obj.getClassType(); + } + @Override public final int hashCode() { return ID; diff --git a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/dHadronDefinition.java b/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/dHadronDefinition.java index bc985aa5b5..a2de430557 100644 --- a/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/dHadronDefinition.java +++ b/src/main/java/com/github/technus/tectech/elementalMatter/definitions/complex/dHadronDefinition.java @@ -24,8 +24,6 @@ import static com.github.technus.tectech.auxiliary.TecTechConfig.DEBUG_MODE; import static com.github.technus.tectech.elementalMatter.definitions.complex.dAtomDefinition.transformation; import static com.github.technus.tectech.elementalMatter.definitions.primitive.eBosonDefinition.boson_Y__; import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.*; -import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.SCAN_GET_MASS; -import static com.github.technus.tectech.thing.metaTileEntity.multi.GT_MetaTileEntity_EM_scanner.SCAN_GET_TIMESPAN_INFO; import static gregtech.api.enums.OrePrefixes.dust; /** diff --git a/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java b/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java index 63d1d61bfa..faf251536f 100644 --- a/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java +++ b/src/main/java/com/github/technus/tectech/thing/tileEntity/ReactorSimTileEntity.java @@ -2,13 +2,10 @@ package com.github.technus.tectech.thing.tileEntity; import com.github.technus.tectech.auxiliary.Reference; import ic2.api.energy.event.EnergyTileUnloadEvent; -import ic2.api.reactor.IReactorComponent; import ic2.core.IC2; import ic2.core.block.reactor.tileentity.TileEntityNuclearReactorElectric; import ic2.core.init.MainConfig; import ic2.core.util.ConfigUtil; -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.ForgeDirection; |