read the actual block from ZeroBitStorage

This commit is contained in:
SirYwell 2021-12-27 06:02:16 +01:00
parent 596356a936
commit f9ecb449cf

View File

@ -896,7 +896,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
final BitStorage bits = (BitStorage) PaperweightPlatformAdapter.fieldStorage.get(dataObject);
if (bits instanceof ZeroBitStorage) {
Arrays.fill(data, (char) 1);
Arrays.fill(data, adapter.adaptToChar(blocks.get(0, 0, 0))); // get(int) is only public on paper
return data;
}