mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Fix block hashcode
This commit is contained in:
parent
0db44545cd
commit
88ec8ddffa
@ -144,16 +144,14 @@ final class BlockImpl implements Block {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
BlockImpl block = (BlockImpl) o;
|
||||
return registry.equals(block.registry) &&
|
||||
propertyEntry.equals(block.propertyEntry) &&
|
||||
properties.equals(block.properties) &&
|
||||
return stateId() == block.stateId() &&
|
||||
Objects.equals(nbt, block.nbt) &&
|
||||
Objects.equals(handler, block.handler);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(registry, propertyEntry, properties, nbt, handler);
|
||||
return Objects.hash(stateId(), nbt, handler);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user