not using equals oops
This commit is contained in:
parent
a33a123c9a
commit
922f708763
@ -129,7 +129,7 @@ public class ItemInteractEvents {
|
|||||||
data.addDisplayClaim(claim, EnumDisplayType.MAIN, player.getBlockPos().getY());
|
data.addDisplayClaim(claim, EnumDisplayType.MAIN, player.getBlockPos().getY());
|
||||||
} else {
|
} else {
|
||||||
if (data.currentEdit() != null) {
|
if (data.currentEdit() != null) {
|
||||||
if(data.editingCorner()!=target) {
|
if(!data.editingCorner().equals(target)) {
|
||||||
Set<Claim> fl = claim.resizeSubclaim(data.currentEdit(), data.editingCorner(), target);
|
Set<Claim> fl = claim.resizeSubclaim(data.currentEdit(), data.editingCorner(), target);
|
||||||
if (!fl.isEmpty()) {
|
if (!fl.isEmpty()) {
|
||||||
fl.forEach(confl -> data.addDisplayClaim(confl, EnumDisplayType.MAIN, player.getBlockPos().getY()));
|
fl.forEach(confl -> data.addDisplayClaim(confl, EnumDisplayType.MAIN, player.getBlockPos().getY()));
|
||||||
@ -139,7 +139,7 @@ public class ItemInteractEvents {
|
|||||||
data.setEditingCorner(null);
|
data.setEditingCorner(null);
|
||||||
}
|
}
|
||||||
} else if (data.editingCorner() != null) {
|
} else if (data.editingCorner() != null) {
|
||||||
if(data.editingCorner()!=target) {
|
if(!data.editingCorner().equals(target)) {
|
||||||
Set<Claim> fl = claim.tryCreateSubClaim(data.editingCorner(), target);
|
Set<Claim> fl = claim.tryCreateSubClaim(data.editingCorner(), target);
|
||||||
data.addDisplayClaim(claim, EnumDisplayType.MAIN, player.getBlockPos().getY());
|
data.addDisplayClaim(claim, EnumDisplayType.MAIN, player.getBlockPos().getY());
|
||||||
if (!fl.isEmpty()) {
|
if (!fl.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user