Change hash code generation to improve performance

This commit is contained in:
Blue (Lukas Rieger) 2020-08-03 00:10:00 +02:00
parent 2a0aecf359
commit e40c3bd0d5
1 changed files with 1 additions and 2 deletions

View File

@ -38,7 +38,6 @@ import java.util.Collections;
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 class MCAWorld implements World {
@Override
public int hashCode() {
return Objects.hash(world, chunk);
return (world.hashCode() * 31 + chunk.getX()) * 31 + chunk.getY();
}
@Override