mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-31 20:41:29 +01:00
No thread refresh for perchunk-instance thread provider
This commit is contained in:
parent
cad488bb5d
commit
136ed17c0b
@ -20,4 +20,9 @@ public class PerChunkThreadProvider extends ThreadProvider {
|
||||
public long findThread(@NotNull Chunk chunk) {
|
||||
return chunk.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull RefreshType getChunkRefreshType() {
|
||||
return RefreshType.NEVER;
|
||||
}
|
||||
}
|
||||
|
@ -21,4 +21,9 @@ public class PerInstanceThreadProvider extends ThreadProvider {
|
||||
public long findThread(@NotNull Chunk chunk) {
|
||||
return chunk.getInstance().hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull RefreshType getChunkRefreshType() {
|
||||
return RefreshType.NEVER;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user