These somehow were undone at some point

This commit is contained in:
boy0001 2014-11-11 13:23:45 +11:00
parent c9204b3590
commit e6c5f824df
2 changed files with 17 additions and 1 deletions

View File

@ -22,6 +22,7 @@
package com.intellectualcrafters.plot;
import com.intellectualcrafters.plot.database.DBFunc;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.block.Biome;
@ -286,6 +287,21 @@ public class Plot implements Cloneable {
PlotHelper.clear(plr, this);
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Plot other = (Plot) obj;
return ((this.id.x.equals(other.id.x)) && (this.id.y.equals(other.id.y)) && (this.world.equals(other.world)));
}
/**
* Get the plot hashcode
*

View File

@ -75,7 +75,7 @@ public class PlotId {
return false;
}
final PlotId other = (PlotId) obj;
return ((this.x == other.x) && (this.y == other.y));
return ((this.x.equals(other.x)) && (this.y.equals(other.y)));
}
@Override