Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #143 from 123DMWM/master
Browse files Browse the repository at this point in the history
A few fixes
  • Loading branch information
Jonty800 committed Dec 7, 2013
2 parents e7f7eb4 + 9551f06 commit 8290c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/mojang/minecraft/Minecraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -2100,7 +2100,7 @@ private void tick() {
Short r = ((Short) packetParams[1]).shortValue();
Short g = ((Short) packetParams[2]).shortValue();
Short b = ((Short) packetParams[3]).shortValue();
int dec = 255 * 255 * r + 255 * g + b;
int dec = ((r&0x0ff)<<16)|((g&0x0ff)<<8)|(b&0x0ff);
switch (Variable) {
case 0: // sky
this.level.skyColor = dec;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/mojang/minecraft/net/NetworkPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public NetworkPlayer(Minecraft var1, String var3, int var4, int var5, int var6,
|| this.name.equalsIgnoreCase("Jonty800@")) {
this.modelName = "sheep";
}
if (this.modelName == "humanoid") {
if (this.modelName.equals("humanoid")) {
downloadSkin();
} else if (isInteger(this.modelName)) {
GL11.glBindTexture(3553, var1.textureManager.load("/terrain.png"));
Expand Down Expand Up @@ -103,15 +103,15 @@ public void bindTexture(TextureManager var1) {
}

this.hasHair = var10001;
if (this.modelName == "humanoid") {
if (this.modelName.equals("humanoid")) {
this.a = var1.load(this.newTexture);
}
this.newTexture = null;
}
if (isInteger(this.modelName)) {
GL11.glBindTexture(3553, var1.load("/terrain.png"));
return;
} else if (this.modelName != "humanoid") {
} else if (!this.modelName.equals("humanoid")) {
GL11.glBindTexture(3553, var1.load("/mob/" + this.modelName + ".png"));
return;
}
Expand Down

0 comments on commit 8290c70

Please sign in to comment.