Exclude chunks from the equals and hashcode method

This commit is contained in:
Tim203 2020-06-24 00:24:49 +02:00
parent 3cee923a3f
commit b0229a67b5
No known key found for this signature in database
GPG key ID: 064EE9F5BF7C3EE8

View file

@ -2,6 +2,7 @@ package com.github.steveice10.mc.protocol.data.game.chunk;
import com.github.steveice10.opennbt.tag.builtin.CompoundTag; import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull; import lombok.NonNull;
import java.util.Arrays; import java.util.Arrays;
@ -11,6 +12,7 @@ public class Column {
private final int x; private final int x;
private final int z; private final int z;
private final boolean ignoreOldData; private final boolean ignoreOldData;
@EqualsAndHashCode.Exclude
private final @NonNull Chunk[] chunks; private final @NonNull Chunk[] chunks;
private final @NonNull CompoundTag[] tileEntities; private final @NonNull CompoundTag[] tileEntities;
private final @NonNull CompoundTag heightMaps; private final @NonNull CompoundTag heightMaps;