Bugfixes 8
This commit is contained in:
parent
5eb2857389
commit
7874d1c91f
22 changed files with 50 additions and 79 deletions
|
@ -204,8 +204,10 @@ public class GT_Mod
|
|||
GregTech_API.sDrinksAlwaysDrinkable = tMainConfig.get("general", "drinks_always_drinkable", false).getBoolean(false);
|
||||
GregTech_API.sDoShowAllItemsInCreative = tMainConfig.get("general", "show_all_metaitems_in_creative_and_NEI", false).getBoolean(false);
|
||||
GregTech_API.sMultiThreadedSounds = tMainConfig.get("general", "sound_multi_threading", false).getBoolean(false);
|
||||
String SBdye0 = "ColorModulation.";
|
||||
for (Dyes tDye : Dyes.values()) {
|
||||
if ((tDye != Dyes._NULL) && (tDye.mIndex < 0)) {
|
||||
String SBdye1 = new StringBuilder(18).append(SBdye0).append(tDye).toString();
|
||||
tDye.mRGBa[0] = ((short) Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "R", tDye.mRGBa[0]))));
|
||||
tDye.mRGBa[1] = ((short) Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "G", tDye.mRGBa[1]))));
|
||||
tDye.mRGBa[2] = ((short) Math.min(255, Math.max(0, GregTech_API.sClientDataFile.get("ColorModulation." + tDye, "B", tDye.mRGBa[2]))));
|
||||
|
|
|
@ -190,7 +190,7 @@ public class GregTech_API {
|
|||
public static int mRFtoEU = 20;
|
||||
public static boolean mRFExplosions = true;
|
||||
public static boolean mServerStarted = false;
|
||||
private static final String aTextIC2Lower = MOD_ID_IC2.toLowerCase();
|
||||
private static final String aTextIC2Lower = MOD_ID_IC2.toLowerCase(Locale.ENGLISH);
|
||||
/**
|
||||
* Getting assigned by the Mod loading
|
||||
*/
|
||||
|
|
|
@ -8,6 +8,8 @@ import net.minecraft.world.World;
|
|||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Made for static imports, this Class is just a Helper.
|
||||
* <p/>
|
||||
|
@ -89,7 +91,7 @@ public class GT_Values {
|
|||
* File Paths and Resource Paths
|
||||
*/
|
||||
public static final String
|
||||
TEX_DIR = "textures/", TEX_DIR_GUI = TEX_DIR + "gui/", TEX_DIR_ITEM = TEX_DIR + "items/", TEX_DIR_BLOCK = TEX_DIR + "blocks/", TEX_DIR_ENTITY = TEX_DIR + "entity/", TEX_DIR_ASPECTS = TEX_DIR + "aspects/", RES_PATH = MOD_ID + ":" + TEX_DIR, RES_PATH_GUI = MOD_ID + ":" + TEX_DIR_GUI, RES_PATH_ITEM = MOD_ID + ":", RES_PATH_BLOCK = MOD_ID + ":", RES_PATH_ENTITY = MOD_ID + ":" + TEX_DIR_ENTITY, RES_PATH_ASPECTS = MOD_ID + ":" + TEX_DIR_ASPECTS, RES_PATH_IC2 = MOD_ID_IC2.toLowerCase() + ":", RES_PATH_MODEL = MOD_ID + ":" + TEX_DIR + "models/";
|
||||
TEX_DIR = "textures/", TEX_DIR_GUI = TEX_DIR + "gui/", TEX_DIR_ITEM = TEX_DIR + "items/", TEX_DIR_BLOCK = TEX_DIR + "blocks/", TEX_DIR_ENTITY = TEX_DIR + "entity/", TEX_DIR_ASPECTS = TEX_DIR + "aspects/", RES_PATH = MOD_ID + ":" + TEX_DIR, RES_PATH_GUI = MOD_ID + ":" + TEX_DIR_GUI, RES_PATH_ITEM = MOD_ID + ":", RES_PATH_BLOCK = MOD_ID + ":", RES_PATH_ENTITY = MOD_ID + ":" + TEX_DIR_ENTITY, RES_PATH_ASPECTS = MOD_ID + ":" + TEX_DIR_ASPECTS, RES_PATH_IC2 = MOD_ID_IC2.toLowerCase(Locale.ENGLISH) + ":", RES_PATH_MODEL = MOD_ID + ":" + TEX_DIR + "models/";
|
||||
/**
|
||||
* The Mod Object itself. That is the GT_Mod-Object. It's needed to open GUI's and similar.
|
||||
*/
|
||||
|
|
|
@ -1408,7 +1408,7 @@ public enum Materials implements IColorModulationContainer, ISubTagContainer {
|
|||
*/
|
||||
public static void init(GT_Config aConfiguration) {
|
||||
for (Materials tMaterial : VALUES) {
|
||||
String tString = tMaterial.toString().toLowerCase();
|
||||
String tString = tMaterial.toString().toLowerCase(Locale.ENGLISH);
|
||||
tMaterial.mHeatDamage = (float) aConfiguration.get(ConfigCategories.Materials.heatdamage, tString, tMaterial.mHeatDamage);
|
||||
if (tMaterial.mBlastFurnaceRequired)
|
||||
tMaterial.mBlastFurnaceRequired = aConfiguration.get(ConfigCategories.Materials.blastfurnacerequirements, tString, true);
|
||||
|
|
|
@ -30,6 +30,7 @@ import net.minecraftforge.fluids.FluidTankInfo;
|
|||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static gregtech.api.enums.GT_Values.GT;
|
||||
import static gregtech.api.enums.GT_Values.V;
|
||||
|
@ -83,7 +84,7 @@ public abstract class MetaPipeEntity implements IMetaTileEntity {
|
|||
} else {
|
||||
throw new IllegalArgumentException("MetaMachine-Slot Nr. " + aID + " is already occupied!");
|
||||
}
|
||||
mName = aBasicName.replaceAll(" ", "_").toLowerCase();
|
||||
mName = aBasicName.replaceAll(" ", "_").toLowerCase(Locale.ENGLISH);
|
||||
setBaseMetaTileEntity(new BaseMetaPipeEntity());
|
||||
getBaseMetaTileEntity().setMetaTileID((short) aID);
|
||||
GT_LanguageManager.addStringLocalization("gt.blockmachines." + mName + ".name", aRegionalName);
|
||||
|
|
|
@ -30,6 +30,7 @@ import net.minecraftforge.fluids.FluidTankInfo;
|
|||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static gregtech.api.enums.GT_Values.GT;
|
||||
import static gregtech.api.enums.GT_Values.V;
|
||||
|
@ -79,7 +80,7 @@ public abstract class MetaTileEntity implements IMetaTileEntity {
|
|||
} else {
|
||||
throw new IllegalArgumentException("MetaMachine-Slot Nr. " + aID + " is already occupied!");
|
||||
}
|
||||
mName = aBasicName.replaceAll(" ", "_").toLowerCase();
|
||||
mName = aBasicName.replaceAll(" ", "_").toLowerCase(Locale.ENGLISH);
|
||||
setBaseMetaTileEntity(GregTech_API.constructBaseMetaTileEntity());
|
||||
getBaseMetaTileEntity().setMetaTileID((short) aID);
|
||||
GT_LanguageManager.addStringLocalization("gt.blockmachines." + mName + ".name", aRegionalName);
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package gregtech.api.metatileentity.implementations;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import gregtech.api.enums.*;
|
||||
import gregtech.api.gui.GT_Container_BasicMachine;
|
||||
import gregtech.api.gui.GT_GUIContainer_BasicMachine;
|
||||
|
@ -19,6 +17,9 @@ import net.minecraft.init.Blocks;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.Random;
|
||||
|
||||
import static gregtech.api.enums.GT_Values.V;
|
||||
import static gregtech.api.enums.GT_Values.W;
|
||||
|
||||
|
@ -35,7 +36,7 @@ public class GT_MetaTileEntity_BasicMachine_GT_Recipe extends GT_MetaTileEntity_
|
|||
private final boolean mSharedTank, mRequiresFluidForFiltering;
|
||||
private final byte mGUIParameterA, mGUIParameterB;
|
||||
public GT_MetaTileEntity_BasicMachine_GT_Recipe(int aID, String aName, String aNameRegional, int aTier, String aDescription, GT_Recipe_Map aRecipes, int aInputSlots, int aOutputSlots, int aTankCapacity, int aGUIParameterA, int aGUIParameterB, String aGUIName, String aSound, boolean aSharedTank, boolean aRequiresFluidForFiltering, int aSpecialEffect, String aOverlays, Object[] aRecipe) {
|
||||
super(aID, aName, aNameRegional, aTier, aRecipes.mAmperage, aDescription, aInputSlots, aOutputSlots, aGUIName, aRecipes.mNEIName, new ITexture[]{new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_SIDE_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_SIDE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_FRONT_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_FRONT")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_TOP_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_TOP")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_BOTTOM_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase() + "/OVERLAY_BOTTOM"))});
|
||||
super(aID, aName, aNameRegional, aTier, aRecipes.mAmperage, aDescription, aInputSlots, aOutputSlots, aGUIName, aRecipes.mNEIName, new ITexture[]{new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_SIDE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_FRONT")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_TOP")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM_ACTIVE")), new GT_RenderedTexture(new Textures.BlockIcons.CustomIcon("basicmachines/" + aOverlays.toLowerCase(Locale.ENGLISH) + "/OVERLAY_BOTTOM"))});
|
||||
mSharedTank = aSharedTank;
|
||||
mTankCapacity = aTankCapacity;
|
||||
mSpecialEffect = aSpecialEffect;
|
||||
|
|
|
@ -788,7 +788,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
|
||||
@Override
|
||||
public String[] getInfoData() {
|
||||
return new String[]{"Progress:", (mProgresstime / 20) + "secs", (mMaxProgresstime / 20) + "secs", "Efficiency:", (mEfficiency / 100.0F) + "%", "Problems:", "" + (getIdealStatus() - getRepairStatus())};
|
||||
return new String[]{"Progress:", (mProgresstime / 20) + "secs", (mMaxProgresstime / 20) + "secs", "Efficiency:", (mEfficiency / 100.0F) + "%", "Problems:", String.valueOf((getIdealStatus() - getRepairStatus()))};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,8 +49,6 @@ public class GT_Client extends GT_Proxy
|
|||
});
|
||||
}
|
||||
|
||||
private final HashSet mCapeList = new HashSet();
|
||||
private final GT_CapeRenderer mCapeRenderer;
|
||||
private final List mPosR;
|
||||
private final List mPosG;
|
||||
private final List mPosB;
|
||||
|
@ -69,14 +67,9 @@ public class GT_Client extends GT_Proxy
|
|||
private final List mMoltenNegA = Arrays.asList(new Object[0]);
|
||||
private long mAnimationTick;
|
||||
private boolean mAnimationDirection;
|
||||
private boolean isFirstClientPlayerTick;
|
||||
private String mMessage;
|
||||
public GT_Client() {
|
||||
mCapeRenderer = new GT_CapeRenderer(mCapeList);
|
||||
mAnimationTick = 0L;
|
||||
mAnimationDirection = false;
|
||||
isFirstClientPlayerTick = true;
|
||||
mMessage = "";
|
||||
mPosR = Arrays.asList(new Materials[]{
|
||||
/**Materials.ChargedCertusQuartz, **/Materials.Enderium, Materials.Vinteum, Materials.Uranium235, Materials.InfusedGold, Materials.Plutonium241, Materials.NaquadahEnriched, Materials.Naquadria, Materials.InfusedOrder, Materials.Force,
|
||||
Materials.Pyrotheum, Materials.Sunnarium, Materials.Glowstone, Materials.Thaumium, Materials.InfusedVis, Materials.InfusedAir, Materials.InfusedFire, Materials.FierySteel, Materials.Firestone
|
||||
|
@ -164,27 +157,6 @@ public class GT_Client extends GT_Proxy
|
|||
|
||||
public void onPreLoad() {
|
||||
super.onPreLoad();
|
||||
String arr$[] = {
|
||||
"renadi", "hanakocz", "MysteryDump", "Flaver4", "x_Fame", "Peluche321", "Goshen_Ithilien", "manf", "Bimgo", "leagris",
|
||||
"IAmMinecrafter02", "Cerous", "Devilin_Pixy", "Bkarlsson87", "BadAlchemy", "CaballoCraft", "melanclock", "Resursator", "demanzke", "AndrewAmmerlaan",
|
||||
"Deathlycraft", "Jirajha", "Axlegear", "kei_kouma", "Dracion", "dungi", "Dorfschwein", "Zero Tw0", "mattiagraz85", "sebastiank30",
|
||||
"Plem", "invultri", "grillo126", "malcanteth", "Malevolence_", "Nicholas_Manuel", "Sirbab", "kehaan", "bpgames123", "semig0d",
|
||||
"9000bowser", "Sovereignty89", "Kris1432", "xander_cage_", "samuraijp", "bsaa", "SpwnX", "tworf", "Kadah", "kanni",
|
||||
"Stute", "Hegik", "Onlyme", "t3hero", "Hotchi", "jagoly", "Nullav", "BH5432", "Sibmer", "inceee",
|
||||
"foxxx0", "Hartok", "TMSama", "Shlnen", "Carsso", "zessirb", "meep310", "Seldron", "yttr1um", "hohounk",
|
||||
"freebug", "Sylphio", "jmarler", "Saberawr", "r00teniy", "Neonbeta", "yinscape", "voooon24", "Quintine", "peach774",
|
||||
"lepthymo", "bildeman", "Kremnari", "Aerosalo", "OndraSter", "oscares91", "mr10movie", "Daxx367x2", "EGERTRONx", "aka13_404",
|
||||
"Abouttabs", "Johnstaal", "djshiny99", "megatronp", "DZCreeper", "Kane_Hart", "Truculent", "vidplace7", "simon6689", "MomoNasty",
|
||||
"UnknownXLV", "goreacraft", "Fluttermine", "Daddy_Cecil", "MrMaleficus", "TigersFangs", "cublikefoot", "chainman564", "NikitaBuker", "Misha999777",
|
||||
"25FiveDetail", "AntiCivilBoy", "michaelbrady", "xXxIceFirexXx", "Speedynutty68", "GarretSidzaka", "HallowCharm977", "mastermind1919", "The_Hypersonic", "diamondguy2798",
|
||||
"zF4ll3nPr3d4t0r", "CrafterOfMines57", "XxELIT3xSNIP3RxX", "SuterusuKusanagi", "xavier0014", "adamros", "alexbegt"
|
||||
};
|
||||
int len$ = arr$.length;
|
||||
for (int i$ = 0; i$ < len$; i$++) {
|
||||
String tName = arr$[i$];
|
||||
mCapeList.add(tName.toLowerCase());
|
||||
}
|
||||
|
||||
(new Thread(this)).start();
|
||||
}
|
||||
|
||||
|
|
|
@ -971,8 +971,8 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
try {
|
||||
aEvent.Ore.stackSize = 1;
|
||||
if (this.mIgnoreTcon || aEvent.Ore.getUnlocalizedName().startsWith("item.oreberry")) {
|
||||
if ((aOriginalMod.toLowerCase().contains("xycraft")) || (aOriginalMod.toLowerCase().contains("tconstruct"))
|
||||
|| ((aOriginalMod.toLowerCase().contains("natura")) && (!aOriginalMod.toLowerCase().contains("natural")))) {
|
||||
if ((aOriginalMod.toLowerCase(Locale.ENGLISH).contains("xycraft")) || (aOriginalMod.toLowerCase(Locale.ENGLISH).contains("tconstruct"))
|
||||
|| ((aOriginalMod.toLowerCase(Locale.ENGLISH).contains("natura")) && (!aOriginalMod.toLowerCase(Locale.ENGLISH).contains("natural")))) {
|
||||
if (GT_Values.D1) {
|
||||
GT_Log.ore.println(aMod + " -> " + aEvent.Name + " is getting ignored, because of racism. :P");
|
||||
}
|
||||
|
@ -1662,12 +1662,12 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
}
|
||||
|
||||
public Fluid addAutogeneratedMoltenFluid(Materials aMaterial) {
|
||||
return addFluid("molten." + aMaterial.name().toLowerCase(), "molten.autogenerated", "Molten " + aMaterial.mDefaultLocalName, aMaterial,
|
||||
return addFluid("molten." + aMaterial.name().toLowerCase(Locale.ENGLISH), "molten.autogenerated", "Molten " + aMaterial.mDefaultLocalName, aMaterial,
|
||||
aMaterial.mMoltenRGBa, 4, aMaterial.mMeltingPoint <= 0 ? 1000 : aMaterial.mMeltingPoint, null, null, 0);
|
||||
}
|
||||
|
||||
public Fluid addAutogeneratedPlasmaFluid(Materials aMaterial) {
|
||||
return addFluid("plasma." + aMaterial.name().toLowerCase(), "plasma.autogenerated", aMaterial.mDefaultLocalName + " Plasma", aMaterial,
|
||||
return addFluid("plasma." + aMaterial.name().toLowerCase(Locale.ENGLISH), "plasma.autogenerated", aMaterial.mDefaultLocalName + " Plasma", aMaterial,
|
||||
aMaterial.mMoltenRGBa, 3, 10000, GT_OreDictUnificator.get(OrePrefixes.cellPlasma, aMaterial, 1L), ItemList.Cell_Empty.get(1L, new Object[0]),
|
||||
1000);
|
||||
}
|
||||
|
@ -1678,7 +1678,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
|
|||
|
||||
public Fluid addFluid(String aName, String aLocalized, Materials aMaterial, int aState, int aTemperatureK, ItemStack aFullContainer,
|
||||
ItemStack aEmptyContainer, int aFluidAmount) {
|
||||
return addFluid(aName, aName.toLowerCase(), aLocalized, aMaterial, null, aState, aTemperatureK, aFullContainer, aEmptyContainer, aFluidAmount);
|
||||
return addFluid(aName, aName.toLowerCase(Locale.ENGLISH), aLocalized, aMaterial, null, aState, aTemperatureK, aFullContainer, aEmptyContainer, aFluidAmount);
|
||||
}
|
||||
|
||||
public Fluid addFluid(String aName, String aTexture, String aLocalized, Materials aMaterial, short[] aRGBa, int aState, int aTemperatureK,
|
||||
|
|
|
@ -15,7 +15,7 @@ public abstract class GT_Cover_RedstoneWirelessBase
|
|||
}
|
||||
|
||||
public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && /*(*/((aY > 0.375D) && (aY < 0.625D))/* || ((aSide < 2) && (((aZ > 0.375D) && (aZ < 0.625D)) || (aSide == 2) || (aSide == 3))))*/)) {
|
||||
if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide > 3) && ((aY > 0.375D) && (aY < 0.625D)))) {
|
||||
GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte) 0));
|
||||
aCoverVariable = GT_Utility.stackToInt(aPlayer.inventory.getCurrentItem());
|
||||
aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
|
||||
|
@ -26,7 +26,7 @@ public abstract class GT_Cover_RedstoneWirelessBase
|
|||
}
|
||||
|
||||
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
|
||||
if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((((aZ <= 0.375D) || (aZ >= 0.625D)) && (aSide != 2) && (aSide != 3)))))) {
|
||||
if (((aX > 0.375D) && (aX < 0.625D)) || ((aSide <= 3) || (((aY > 0.375D) && (aY < 0.625D)) || ((((aZ <= 0.375D) || (aZ >= 0.625D))))))) {
|
||||
GregTech_API.sWirelessRedstone.put(Integer.valueOf(aCoverVariable), Byte.valueOf((byte) 0));
|
||||
float[] tCoords = GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ);
|
||||
switch ((byte) ((byte) (int) (tCoords[0] * 2.0F) + 2 * (byte) (int) (tCoords[1] * 2.0F))) {
|
||||
|
|
|
@ -77,7 +77,7 @@ public class GT_Container_Regulator
|
|||
}
|
||||
return null;
|
||||
}
|
||||
if ((aSlotIndex > 8) && (aSlotIndex < 18)) {
|
||||
if ((aSlotIndex < 18)) {
|
||||
ItemStack tStack = aPlayer.inventory.getItemStack();
|
||||
if (tStack != null) {
|
||||
tSlot.putStack(GT_Utility.copy(new Object[]{tStack}));
|
||||
|
@ -96,7 +96,7 @@ public class GT_Container_Regulator
|
|||
}
|
||||
return null;
|
||||
}
|
||||
if ((aSlotIndex > 17) && (aSlotIndex < 27)) {
|
||||
if ((aSlotIndex < 27)) {
|
||||
((GT_MetaTileEntity_Regulator) this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] = Math.min(99, Math.max(0, ((GT_MetaTileEntity_Regulator) this.mTileEntity.getMetaTileEntity()).mTargetSlots[(aSlotIndex - 18)] + (aMouseclick == 0 ? -1 : 1) * (aShifthold == 0 ? 1 : 16)));
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -11,15 +11,15 @@ public class GT_GUIContainer_Regulator
|
|||
}
|
||||
|
||||
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[0], 120, 9, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[1], 137, 9, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[2], 155, 9, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[3], 120, 26, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[4], 137, 26, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[5], 155, 26, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[6], 120, 43, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[7], 137, 43, 16448255);
|
||||
this.fontRendererObj.drawString("" + ((GT_Container_Regulator) this.mContainer).mTargetSlots[8], 155, 43, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[0]), 120, 9, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[1]), 137, 9, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[2]), 155, 9, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[3]), 120, 26, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[4]), 137, 26, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[5]), 155, 26, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[6]), 120, 43, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[7]), 137, 43, 16448255);
|
||||
this.fontRendererObj.drawString(String.valueOf(((GT_Container_Regulator) this.mContainer).mTargetSlots[8]), 155, 43, 16448255);
|
||||
}
|
||||
|
||||
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
|
||||
|
|
|
@ -78,7 +78,7 @@ public class GT_SensorCard_Item
|
|||
public List<PanelSetting> getSettingsList() {
|
||||
List<PanelSetting> rList = new ArrayList(30);
|
||||
for (int i = 0; i < 8; i++) {
|
||||
rList.add(new PanelSetting("" + (i + 1), 1 << i, getCardType()));
|
||||
rList.add(new PanelSetting(String.valueOf((i + 1)), 1 << i, getCardType()));
|
||||
}
|
||||
return rList;
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ import thaumcraft.api.aspects.IEssentiaContainerItem;
|
|||
import thaumcraft.api.visnet.VisNetHandler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Locale;
|
||||
|
||||
import static gregtech.api.enums.GT_Values.V;
|
||||
|
||||
|
@ -163,7 +164,7 @@ public class GT_MetaTileEntity_MagicalEnergyAbsorber extends GT_MetaTileEntity_B
|
|||
if ((this.mInventory[0] != null) && (this.mInventory[1] == null)) {
|
||||
if (isThaumcraftLoaded && this.mInventory[0].getItem() instanceof IEssentiaContainerItem) {
|
||||
AspectList tAspect = ((IEssentiaContainerItem) this.mInventory[0].getItem()).getAspects(this.mInventory[0]);
|
||||
TC_Aspects tValue = TC_Aspects.valueOf(tAspect.getAspects()[0].getTag().toUpperCase());
|
||||
TC_Aspects tValue = TC_Aspects.valueOf(tAspect.getAspects()[0].getTag().toUpperCase(Locale.ENGLISH));
|
||||
int tEU = (tValue.mValue * tAspect.getAmount((Aspect) tValue.mAspect) * 100);
|
||||
getBaseMetaTileEntity().increaseStoredEnergyUnits(tEU * getEfficiency() / 100, true);
|
||||
ItemStack tStack = this.mInventory[0].copy();
|
||||
|
|
|
@ -126,19 +126,6 @@ public abstract class GT_MetaTileEntity_FusionComputer extends GT_MetaTileEntity
|
|||
return false;
|
||||
}
|
||||
|
||||
//FindBugs
|
||||
@Deprecated
|
||||
private boolean checkTier(byte tier, ArrayList<GT_MetaTileEntity_Hatch> list) {
|
||||
if (list != null) {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
if (list.get(i).mTier < tier) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private boolean checkCoils(int aX, int aY, int aZ) {
|
||||
return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2))
|
||||
&& (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4))
|
||||
|
|
|
@ -28,7 +28,7 @@ public class GT_Tool_HardHammer
|
|||
|
||||
public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) {
|
||||
String tName = aEntity.getClass().getName();
|
||||
tName = tName.substring(tName.lastIndexOf(".") + 1);
|
||||
tName = tName.substring(tName.lastIndexOf('.') + 1);
|
||||
return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public class GT_Tool_Screwdriver
|
|||
|
||||
public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) {
|
||||
String tName = aEntity.getClass().getName();
|
||||
tName = tName.substring(tName.lastIndexOf(".") + 1);
|
||||
tName = tName.substring(tName.lastIndexOf('.') + 1);
|
||||
return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public class GT_Tool_Soldering_Iron extends GT_Tool {
|
|||
|
||||
public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) {
|
||||
String tName = aEntity.getClass().getName();
|
||||
tName = tName.substring(tName.lastIndexOf(".") + 1);
|
||||
tName = tName.substring(tName.lastIndexOf('.') + 1);
|
||||
return mEffectiveList.contains(tName) ? aOriginalDamage * 2.0F : aOriginalDamage;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public class GT_Tool_Wrench
|
|||
|
||||
public float getNormalDamageAgainstEntity(float aOriginalDamage, Entity aEntity, ItemStack aStack, EntityPlayer aPlayer) {
|
||||
String tName = aEntity.getClass().getName();
|
||||
tName = tName.substring(tName.lastIndexOf(".") + 1);
|
||||
tName = tName.substring(tName.lastIndexOf('.') + 1);
|
||||
return (mEffectiveList.contains(tName)) || (tName.contains("Golem")) ? aOriginalDamage * 2.0F : aOriginalDamage;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ import net.minecraft.init.Blocks;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class ProcessingDye implements IOreRecipeRegistrator {
|
||||
public ProcessingDye() {
|
||||
OrePrefixes.dye.add(this);
|
||||
|
@ -23,9 +25,9 @@ public class ProcessingDye implements IOreRecipeRegistrator {
|
|||
(GT_Utility.getContainerItem(aStack, true) == null)) {
|
||||
GT_ModHandler.addAlloySmelterRecipe(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glass, 8L), GT_Utility.copyAmount(1L, new Object[]{aStack}), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false);
|
||||
GT_ModHandler.addAlloySmelterRecipe(new ItemStack(Blocks.glass, 8, 32767), GT_Utility.copyAmount(1L, new Object[]{aStack}), new ItemStack(Blocks.stained_glass, 8, 15 - aDye.mIndex), 200, 8, false);
|
||||
GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), null, null, null, Materials.Water.getFluid(216L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 192), null, 16, 4);
|
||||
GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), null, null, null, GT_ModHandler.getDistilledWater(288L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(), 216), null, 16, 4);
|
||||
GT_Values.RA.addChemicalRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 2), Materials.SulfuricAcid.getFluid(432), FluidRegistry.getFluidStack("dye.chemical." + aDye.name().toLowerCase(), 288), GT_Values.NI, 600, 48);
|
||||
GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), null, null, null, Materials.Water.getFluid(216L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(Locale.ENGLISH), 192), null, 16, 4);
|
||||
GT_Values.RA.addMixerRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), null, null, null, GT_ModHandler.getDistilledWater(288L), FluidRegistry.getFluidStack("dye.watermixed." + aDye.name().toLowerCase(Locale.ENGLISH), 216), null, 16, 4);
|
||||
GT_Values.RA.addChemicalRecipe(GT_Utility.copyAmount(1L, new Object[]{aStack}), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Salt, 2), Materials.SulfuricAcid.getFluid(432), FluidRegistry.getFluidStack("dye.chemical." + aDye.name().toLowerCase(Locale.ENGLISH), 288), GT_Values.NI, 600, 48);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ import net.minecraftforge.fluids.FluidContainerRegistry;
|
|||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class GT_Loader_Item_Block_And_Fluid
|
||||
implements Runnable {
|
||||
public void run() {
|
||||
|
@ -450,8 +452,8 @@ public class GT_Loader_Item_Block_And_Fluid
|
|||
for (byte i = 0; i < Dyes.VALUES.length; i = (byte) (i + 1)) {
|
||||
Dyes tDye = Dyes.VALUES[i];
|
||||
Fluid tFluid;
|
||||
tDye.addFluidDye(tFluid = GT_Mod.gregtechproxy.addFluid("dye.watermixed." + tDye.name().toLowerCase(), "dyes", "Water Mixed " + tDye.mName + " Dye", null, tDye.getRGBA(), 1, 295, null, null, 0));
|
||||
tDye.addFluidDye(tFluid = GT_Mod.gregtechproxy.addFluid("dye.chemical." + tDye.name().toLowerCase(), "dyes", "Chemical " + tDye.mName + " Dye", null, tDye.getRGBA(), 1, 295, null, null, 0));
|
||||
tDye.addFluidDye(tFluid = GT_Mod.gregtechproxy.addFluid("dye.watermixed." + tDye.name().toLowerCase(Locale.ENGLISH), "dyes", "Water Mixed " + tDye.mName + " Dye", null, tDye.getRGBA(), 1, 295, null, null, 0));
|
||||
tDye.addFluidDye(tFluid = GT_Mod.gregtechproxy.addFluid("dye.chemical." + tDye.name().toLowerCase(Locale.ENGLISH), "dyes", "Chemical " + tDye.mName + " Dye", null, tDye.getRGBA(), 1, 295, null, null, 0));
|
||||
FluidContainerRegistry.registerFluidContainer(new FluidStack(tFluid, 2304), ItemList.SPRAY_CAN_DYES[i].get(1L, new Object[0]), ItemList.Spray_Empty.get(1L, new Object[0]));
|
||||
}
|
||||
GT_Mod.gregtechproxy.addFluid("ice", "Crushed Ice", Materials.Ice, 0, 270, GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Ice, 1L), ItemList.Cell_Empty.get(1L, new Object[0]), 1000);
|
||||
|
|
Loading…
Reference in a new issue