aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_DeluxeMachine.java38
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java42
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_CompactFusionReactor.java42
3 files changed, 66 insertions, 56 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_DeluxeMachine.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_DeluxeMachine.java
index ee0722069b..cea9d8eb2f 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_DeluxeMachine.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_DeluxeMachine.java
@@ -408,7 +408,7 @@ public abstract class GT_MetaTileEntity_DeluxeMachine extends GT_MetaTileEntity_
if (aBaseMetaTileEntity.isServerSide()) {
- //Utils.LOG_INFO("Ticking Tank.");
+ //Utils.LOG_WARNING("Ticking Tank.");
mCharge = aBaseMetaTileEntity.getStoredEU() / 2 > aBaseMetaTileEntity.getEUCapacity() / 3;
mDecharge = aBaseMetaTileEntity.getStoredEU() < aBaseMetaTileEntity.getEUCapacity() / 3;
@@ -452,7 +452,7 @@ public abstract class GT_MetaTileEntity_DeluxeMachine extends GT_MetaTileEntity_
}
boolean tRemovedOutputFluid = false;
- Utils.LOG_INFO("R0");
+ Utils.LOG_WARNING("R0");
if (doesAutoOutputFluids() && getDrainableStack() != null && aBaseMetaTileEntity.getFrontFacing() != mMainFacing && (tSucceeded || aTick % 20 == 0)) {
IFluidHandler tTank = aBaseMetaTileEntity.getITankContainerAtSide(aBaseMetaTileEntity.getFrontFacing());
@@ -477,27 +477,27 @@ public abstract class GT_MetaTileEntity_DeluxeMachine extends GT_MetaTileEntity_
if (mOutputBlocked != 0) if (isOutputEmpty()) mOutputBlocked = 0;
else mOutputBlocked++;
- Utils.LOG_INFO("R1");
+ Utils.LOG_WARNING("R1");
if (allowToCheckRecipe()) {
- Utils.LOG_INFO("R2--------------------------------------------------");
- Utils.LOG_INFO("R2: (mMaxProgresstime <= 0 && aBaseMetaTileEntity.isAllowedToWork() && (tRemovedOutputFluid || tSucceeded || aBaseMetaTileEntity.hasInventoryBeenModified() || aTick % 600 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) && hasEnoughEnergyToCheckRecipe())");
- Utils.LOG_INFO("R2--------------------------------------------------");
- Utils.LOG_INFO("R2-mMaxProgresstime: "+mMaxProgresstime);
- Utils.LOG_INFO("R2-isAllowedToWork(): "+aBaseMetaTileEntity.isAllowedToWork());
- Utils.LOG_INFO("R2--------------------------------------------------");
- Utils.LOG_INFO("R2-tRemovedOutputFluid: "+tRemovedOutputFluid);
- Utils.LOG_INFO("R2-tSucceeded: "+tSucceeded);
- Utils.LOG_INFO("R2-hasInventoryBeenModified(): "+aBaseMetaTileEntity.hasInventoryBeenModified());
- Utils.LOG_INFO("R2-(aTick % 600 == 0): "+(aTick % 600 == 0));
- Utils.LOG_INFO("R2-hasWorkJustBeenEnabled(): "+aBaseMetaTileEntity.hasWorkJustBeenEnabled());
- Utils.LOG_INFO("R2--------------------------------------------------");
- Utils.LOG_INFO("R2-hasEnoughEnergyToCheckRecipe(): "+hasEnoughEnergyToCheckRecipe());
- Utils.LOG_INFO("R2--------------------------------------------------");
+ Utils.LOG_WARNING("R2--------------------------------------------------");
+ Utils.LOG_WARNING("R2: (mMaxProgresstime <= 0 && aBaseMetaTileEntity.isAllowedToWork() && (tRemovedOutputFluid || tSucceeded || aBaseMetaTileEntity.hasInventoryBeenModified() || aTick % 600 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) && hasEnoughEnergyToCheckRecipe())");
+ Utils.LOG_WARNING("R2--------------------------------------------------");
+ Utils.LOG_WARNING("R2-mMaxProgresstime: "+mMaxProgresstime);
+ Utils.LOG_WARNING("R2-isAllowedToWork(): "+aBaseMetaTileEntity.isAllowedToWork());
+ Utils.LOG_WARNING("R2--------------------------------------------------");
+ Utils.LOG_WARNING("R2-tRemovedOutputFluid: "+tRemovedOutputFluid);
+ Utils.LOG_WARNING("R2-tSucceeded: "+tSucceeded);
+ Utils.LOG_WARNING("R2-hasInventoryBeenModified(): "+aBaseMetaTileEntity.hasInventoryBeenModified());
+ Utils.LOG_WARNING("R2-(aTick % 600 == 0): "+(aTick % 600 == 0));
+ Utils.LOG_WARNING("R2-hasWorkJustBeenEnabled(): "+aBaseMetaTileEntity.hasWorkJustBeenEnabled());
+ Utils.LOG_WARNING("R2--------------------------------------------------");
+ Utils.LOG_WARNING("R2-hasEnoughEnergyToCheckRecipe(): "+hasEnoughEnergyToCheckRecipe());
+ Utils.LOG_WARNING("R2--------------------------------------------------");
if (mMaxProgresstime <= 0 && aBaseMetaTileEntity.isAllowedToWork() && (tRemovedOutputFluid || tSucceeded || aBaseMetaTileEntity.hasInventoryBeenModified() || aTick % 600 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled()) && hasEnoughEnergyToCheckRecipe()) {
- Utils.LOG_INFO("R3");
+ Utils.LOG_WARNING("R3");
if (checkRecipe() == 2) {
if (mInventory[3] != null && mInventory[3].stackSize <= 0) mInventory[3] = null;
- Utils.LOG_INFO("R4");
+ Utils.LOG_WARNING("R4");
for (int i = getInputSlot(), j = i + mInputSlotCount; i < j; i++)
if (mInventory[i] != null && mInventory[i].stackSize <= 0) mInventory[i] = null;
for (int i = 0; i < mOutputItems.length; i++) {
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java b/src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
index f6507aa1c4..89b144fc5f 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java
@@ -25,6 +25,12 @@ public class GTPP_CapeRenderer
setRenderManager(RenderManager.instance);
}
+ private final String[] mOrangeCapes = {"ImmortalPharaoh7", "Walmart_Employee", "ArchonCerulean", "asturrial"}; //Orange.png
+ private final String[] mBlueCapes = {"fobius", "cantankerousrex", "stephen_2015", "Dyonovan", "Bear989Sr", "CrazyJ1984"}; //Fancycape.png
+ private final String[] mTestCapes = {"123_456_789", "doomsquirter", "ukdunc"}; //TesterCape.png
+ private final String[] mDevCapes = {"draknyte1", "redmage17"}; //Capes for Developers
+
+
public void receiveRenderSpecialsEvent(RenderPlayerEvent.Specials.Pre aEvent) {
AbstractClientPlayer aPlayer = (AbstractClientPlayer) aEvent.entityPlayer;
if (GT_Utility.getFullInvisibility(aPlayer)) {
@@ -40,27 +46,31 @@ public class GTPP_CapeRenderer
}
try {
ResourceLocation tResource = null;
- if (aPlayer.getDisplayName().equalsIgnoreCase("draknyte1")) {
- tResource = this.mCapes[3];
- }
- else if (aPlayer.getDisplayName().equalsIgnoreCase("fobius")) {
- tResource = this.mCapes[2];
- }
- else if (aPlayer.getDisplayName().equalsIgnoreCase("doomsquirter")) {
- tResource = this.mCapes[1];
+
+ for (String mName : mOrangeCapes){
+ if (mName.toLowerCase().contains(aPlayer.getDisplayName().toLowerCase())) {
+ tResource = this.mCapes[0];
+ }
}
- else if (aPlayer.getDisplayName().equalsIgnoreCase("ukdunc")) {
- tResource = this.mCapes[1];
+ for (String mName : mBlueCapes){
+ if (mName.toLowerCase().contains(aPlayer.getDisplayName().toLowerCase())) {
+ tResource = this.mCapes[1];
+ }
}
- else if (aPlayer.getDisplayName().equalsIgnoreCase("cantankerousrex")) {
- tResource = this.mCapes[2];
+ for (String mName : mTestCapes){
+ if (mName.toLowerCase().contains(aPlayer.getDisplayName().toLowerCase())) {
+ tResource = this.mCapes[2];
+ }
}
- else if (aPlayer.getDisplayName().equalsIgnoreCase("123_456_789")) {
- tResource = this.mCapes[1];
+ for (String mName : mDevCapes){
+ if (mName.toLowerCase().contains(aPlayer.getDisplayName().toLowerCase())) {
+ tResource = this.mCapes[3];
+ }
}
- else if (this.mCapeList.contains(aPlayer.getDisplayName().toLowerCase())) {
+
+ /*if (this.mCapeList.contains(aPlayer.getDisplayName().toLowerCase())) {
tResource = this.mCapes[0];
- }
+ }*/
if ((tResource != null) && (!aPlayer.getHideCape())) {
bindTexture(tResource);
GL11.glPushMatrix();
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_CompactFusionReactor.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_CompactFusionReactor.java
index 2572f36372..dc28b6b761 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_CompactFusionReactor.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GregtechMetaTileEntity_CompactFusionReactor.java
@@ -147,16 +147,16 @@ GT_MetaTileEntity_DeluxeMachine {
long mFusionPoint = 20000000L;
@Override
public int checkRecipe() {
- Utils.LOG_INFO("Recipe Tick 1.");
+ Utils.LOG_WARNING("Recipe Tick 1.");
if (!this.mCanProcessRecipe) {
- Utils.LOG_INFO("Recipe Tick 1.1 - Cannot Process Recipe.");
+ Utils.LOG_WARNING("Recipe Tick 1.1 - Cannot Process Recipe.");
if (this.mChargeConsumed < mFusionPoint) {
- Utils.LOG_INFO("Recipe Tick 1.2 - Cannot Ignite Fusion, Charge too low.");
+ Utils.LOG_WARNING("Recipe Tick 1.2 - Cannot Ignite Fusion, Charge too low.");
this.mCharging = true;
this.mCanProcessRecipe = false;
if (this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(
(mFusionPoint / 100), false)) {
- Utils.LOG_INFO("Recipe Tick 1.3 - Charging Internal storage. "+(mFusionPoint / 100)+"/"+mFusionPoint);
+ Utils.LOG_WARNING("Recipe Tick 1.3 - Charging Internal storage. "+(mFusionPoint / 100)+"/"+mFusionPoint);
mChargeConsumed += (mFusionPoint / 100);
}
} else {
@@ -166,13 +166,13 @@ GT_MetaTileEntity_DeluxeMachine {
}
} else {
- Utils.LOG_INFO("Recipe Tick 1.1 - Try to Process Recipe.");
+ Utils.LOG_WARNING("Recipe Tick 1.1 - Try to Process Recipe.");
if (checkRecipeMulti()) {
- Utils.LOG_INFO("Recipe Tick 1.2 - Process Recipe was Successful.");
+ Utils.LOG_WARNING("Recipe Tick 1.2 - Process Recipe was Successful.");
return 2;
}
}
- Utils.LOG_INFO("Recipe Tick 2. - Process Recipe failed.");
+ Utils.LOG_WARNING("Recipe Tick 2. - Process Recipe failed.");
return 0;
}
@@ -435,22 +435,22 @@ GT_MetaTileEntity_DeluxeMachine {
long aTick) {
//super.onPostTick(aBaseMetaTileEntity, aTick);
if (aBaseMetaTileEntity.isServerSide()) {
- Utils.LOG_INFO("1");
+ Utils.LOG_WARNING("1");
if (mEfficiency < 0)
mEfficiency = 0;
if (mRunningOnLoad) {
- Utils.LOG_INFO("2");
+ Utils.LOG_WARNING("2");
this.mEUStore = (int) aBaseMetaTileEntity.getStoredEU();
checkRecipeMulti();
}
if (--mUpdate == 0 || --mStartUpCheck == 0) {
- Utils.LOG_INFO("3");
+ Utils.LOG_WARNING("3");
mMachine = true;
}
if (mStartUpCheck < 0) {
- Utils.LOG_INFO("4");
+ Utils.LOG_WARNING("4");
if (mMachine) {
- Utils.LOG_INFO("5");
+ Utils.LOG_WARNING("5");
if (aBaseMetaTileEntity.getStoredEU()
+ (2048 * tierOverclock()) < maxEUStore()) {
@@ -458,12 +458,12 @@ GT_MetaTileEntity_DeluxeMachine {
2048 * tierOverclock(), true);
}
if (this.mEUStore <= 0 && mMaxProgresstime > 0) {
- Utils.LOG_INFO("6");
+ Utils.LOG_WARNING("6");
stopMachine();
this.mLastRecipe = null;
}
if (mMaxProgresstime > 0) {
- Utils.LOG_INFO("7");
+ Utils.LOG_WARNING("7");
this.getBaseMetaTileEntity()
.decreaseStoredEnergyUnits(mEUt, true);
if (mMaxProgresstime > 0 && ++mProgresstime >= mMaxProgresstime) {
@@ -485,21 +485,21 @@ GT_MetaTileEntity_DeluxeMachine {
checkRecipeMulti();
}
} else {
- Utils.LOG_INFO("8");
+ Utils.LOG_WARNING("8");
if (aTick % 100 == 0
|| aBaseMetaTileEntity.hasWorkJustBeenEnabled()
|| aBaseMetaTileEntity
.hasInventoryBeenModified()) {
- Utils.LOG_INFO("9");
+ Utils.LOG_WARNING("9");
// turnCasingActive(mMaxProgresstime > 0);
if (aBaseMetaTileEntity.isAllowedToWork()) {
- Utils.LOG_INFO("10");
+ Utils.LOG_WARNING("10");
this.mEUStore = (int) aBaseMetaTileEntity
.getStoredEU();
if (checkRecipeMulti()) {
- Utils.LOG_INFO("11");
+ Utils.LOG_WARNING("11");
if (this.mEUStore < this.mLastRecipe.mSpecialValue) {
- Utils.LOG_INFO("12");
+ Utils.LOG_WARNING("12");
mMaxProgresstime = 0;
// turnCasingActive(false);
}
@@ -515,12 +515,12 @@ GT_MetaTileEntity_DeluxeMachine {
}
} else {
// turnCasingActive(false);
- Utils.LOG_INFO("Bad");
+ Utils.LOG_WARNING("Bad");
this.mLastRecipe = null;
stopMachine();
}
}
- Utils.LOG_INFO("Good");
+ Utils.LOG_WARNING("Good");
aBaseMetaTileEntity.setActive(mMaxProgresstime > 0);
}
}