aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/render
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-11-17 17:50:02 +1000
committerAlkalus <draknyte1@hotmail.com>2017-11-17 17:50:02 +1000
commit87e0f8f11686cff0b13f95e37c2cf1169860d7ee (patch)
tree371786f26ca8819c795de7f4a8c5cf8aac19fbea /src/Java/gtPlusPlus/xmod/gregtech/common/render
parent4487354c88d814123e1374198d96275ac8c85406 (diff)
downloadGT5-Unofficial-87e0f8f11686cff0b13f95e37c2cf1169860d7ee.tar.gz
GT5-Unofficial-87e0f8f11686cff0b13f95e37c2cf1169860d7ee.tar.bz2
GT5-Unofficial-87e0f8f11686cff0b13f95e37c2cf1169860d7ee.zip
+ Gave people free capes.
% Redid cape handler. - Removed annoying logging.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/render')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/render/GTPP_CapeRenderer.java42
1 files changed, 26 insertions, 16 deletions
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();