mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
These somehow were undone at some point
This commit is contained in:
parent
c9204b3590
commit
e6c5f824df
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user