Skip to content

Commit

Permalink
Fix compile error, old prepatched file was allowing it to compile loc…
Browse files Browse the repository at this point in the history
…ally when it shouldn't have, as name should be private.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jun 10, 2013
1 parent 19bc6f9 commit 1f1f6f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/common/me/nallar/patched/nbt/PatchNBTTagCompound.java
Expand Up @@ -147,15 +147,15 @@ public Map getTagMap() {

public boolean equals(Object o) {
if (o instanceof NBTTagCompound) {
NBTBase var2 = (NBTBase) o;
if (this.getId() == var2.getId() && ((this.name != null || var2.getName() == null) && (this.name == null || var2.getName() != null) && (this.name == null || this.name.equals(var2.getName())))) {
NBTBase other = (NBTBase) o;
if (this.getId() == other.getId() && ((this.getName() != null || other.getName() == null) && (this.getName() == null || other.getName() != null) && (this.getName() == null || this.getName().equals(other.getName())))) {
NBTTagCompound nbttagcompound = (NBTTagCompound) o;
Map map = tagMap;
Map other = nbttagcompound.getTagMap();
if (map.size() == other.size()) {
Map otherMap = nbttagcompound.getTagMap();
if (map.size() == otherMap.size()) {
synchronized (this) {
for (Map.Entry entry : (Iterable<Map.Entry>) map.entrySet()) {
if (other.get(entry.getKey()) != entry.getValue()) {
if (otherMap.get(entry.getKey()) != entry.getValue()) {
return false;
}
}
Expand Down

0 comments on commit 1f1f6f4

Please sign in to comment.