Don't hide ChunkHolder generic "T" type paramter

This commit is contained in:
dordsor21 2022-06-23 16:10:30 +01:00
parent 704f87da23
commit 010611c4ac
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -429,9 +429,9 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
}
@Override
public <T extends BlockStateHolder<T>> boolean setBlock(
public <B extends BlockStateHolder<B>> boolean setBlock(
ChunkHolder chunk, int x, int y, int z,
T block
B block
) {
chunk.getOrCreateSet();
chunk.delegate = BOTH;
@ -763,7 +763,7 @@ public class ChunkHolder<T extends Future<T>> implements IQueueChunk<T> {
}
@Override
public <T extends BlockStateHolder<T>> boolean setBlock(ChunkHolder chunk, int x, int y, int z, T block) {
public <B extends BlockStateHolder<B>> boolean setBlock(ChunkHolder chunk, int x, int y, int z, B block) {
chunk.getOrCreateSet();
chunk.delegate = SET;
return chunk.setBlock(x, y, z, block);