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; package com.intellectualcrafters.plot;
import com.intellectualcrafters.plot.database.DBFunc; import com.intellectualcrafters.plot.database.DBFunc;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.Biome; import org.bukkit.block.Biome;
@ -285,6 +286,21 @@ public class Plot implements Cloneable {
public void clear(final Player plr) { public void clear(final Player plr) {
PlotHelper.clear(plr, this); 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 * Get the plot hashcode

View File

@ -75,7 +75,7 @@ public class PlotId {
return false; return false;
} }
final PlotId other = (PlotId) obj; 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 @Override