mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Fixed the fuzzy matcher
This commit is contained in:
@ -19,6 +19,8 @@
|
||||
|
||||
package com.sk89q.worldedit.world.registry.state.value;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class SimpleStateValue implements StateValue {
|
||||
|
||||
private String data;
|
||||
@ -38,4 +40,13 @@ public class SimpleStateValue implements StateValue {
|
||||
return this.data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj instanceof StateValue && Objects.equals(((StateValue) obj).getData(), getData());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.data.hashCode();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user