mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-02 19:36:41 +00:00
Merge branch '1.15' of https://github.com/IntellectualSites/FastAsyncWorldEdit-1.13 into 1.15
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.boydti.fawe.beta.implementation.queue;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface Pool<T> {
|
||||
T poll();
|
||||
default boolean offer(T recycle) {
|
||||
|
@ -188,13 +188,13 @@ public class SingleThreadQueueExtent extends ExtentBatchProcessorHolder implemen
|
||||
* Get a new IChunk from either the pool, or create a new one<br> + Initialize it at the
|
||||
* coordinates
|
||||
*
|
||||
* @param X
|
||||
* @param Z
|
||||
* @param chunkX
|
||||
* @param chunkZ
|
||||
* @return IChunk
|
||||
*/
|
||||
private ChunkHolder poolOrCreate(int X, int Z) {
|
||||
private ChunkHolder poolOrCreate(int chunkX, int chunkZ) {
|
||||
ChunkHolder next = create(false);
|
||||
next.init(this, X, Z);
|
||||
next.init(this, chunkX, chunkZ);
|
||||
return next;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user