chore: minor changes

- null check get tile in ThreadUnsafeCharBlocks
 - 0 to reserved ID
This commit is contained in:
dordsor21
2023-06-18 15:03:51 +01:00
parent 78fb74665f
commit 135c77cfb5
8 changed files with 8 additions and 8 deletions

View File

@ -415,7 +415,7 @@ public class PaperweightGetBlocks extends CharGetBlocks implements BukkitGetBloc
}
int ordinal = set.getBlock(lx, ly, lz).getOrdinal();
if (ordinal != 0) {
if (ordinal != BlockTypesCache.ReservedIDs.__RESERVED__) {
BlockEntity tile = entry.getValue();
if (PaperLib.isPaper() && tile instanceof BeaconBlockEntity) {
if (beacons == null) {