Fix Fabric carver cache flushing

This commit is contained in:
dfsek
2020-12-14 16:33:19 -07:00
parent eda976bb5d
commit 11c8025ef4

View File

@@ -69,6 +69,17 @@ public class FabricWorldChunkRegion implements World {
return new FabricBlock(pos, delegate.chunk);
}
@Override
public int hashCode() {
return delegate.generator.hashCode();
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof FabricWorldChunkRegion)) return false;
return ((FabricWorldChunkRegion) obj).delegate.generator.equals(delegate.generator);
}
@Override
public Block getBlockAt(Location l) {
return getBlockAt(l.getBlockX(), l.getBlockY(), l.getBlockZ());