Skip to content

Commit

Permalink
Fix HEALTH_CHANGE
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyron-dev committed Mar 27, 2013
1 parent 057fcb8 commit e5f24c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/OEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public abstract class OEntity {
public boolean I;
public boolean J;
protected boolean K;
public boolean L; //CanaryMod: isdead variable
public boolean M;
public boolean L;
public boolean M; //CanaryMod: isdead variable
public float N;
public float O;
public float P;
Expand Down
2 changes: 1 addition & 1 deletion src/OEntityLiving.java
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,10 @@ public int aX() {
}

public void b(int i) {
this.aS = i;
if (i > this.aW()) {
i = this.aW();
}
this.aS = i; // CanaryMod: fix mojang being dumbasses
}

public boolean a(ODamageSource odamagesource, int i) {
Expand Down
10 changes: 5 additions & 5 deletions src/OEntityPlayerMP.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ public void g() {
}

// CanaryMod: Update the health
if (this.aX() != this.cm) {
if (this.aX() != this.cm && cm != -99999999) {
// updates your health when it is changed.
if (!etc.getInstance().isHealthEnabled()) {
this.j(this.aW());
this.L = false;
super.b(this.aW());
this.M = false;
} else if ((Boolean) manager.callHook(PluginLoader.Hook.HEALTH_CHANGE, getPlayer(), cm, this.aX())) {
this.j(this.cm);
super.b(this.cm);
}
}

Expand Down Expand Up @@ -901,7 +901,7 @@ public boolean getColorEnabled() {
}

public int getViewDistance() {
return this.cq;
return this.cr;
}
// CanaryMod end
}

0 comments on commit e5f24c3

Please sign in to comment.