mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-16 20:41:57 +01:00
Change hash code generation to improve performance
This commit is contained in:
parent
2a0aecf359
commit
e40c3bd0d5
@ -38,7 +38,6 @@
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.function.Predicate;
|
||||
@ -506,7 +505,7 @@ public WorldChunkHash(MCAWorld world, Vector2i chunk) {
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(world, chunk);
|
||||
return (world.hashCode() * 31 + chunk.getX()) * 31 + chunk.getY();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user