mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 18:55:30 +01:00
Added back 1.8 level scanning support. (Not sure where it went)
This commit is contained in:
parent
e40a3ed6f0
commit
ddc2f026e5
@ -114,9 +114,12 @@ public final class BlockScanner extends BukkitRunnable {
|
||||
for (int z = 0; z < 16; z++) {
|
||||
for (int y = scanY; y < 256; y++) {
|
||||
|
||||
final CompatibleMaterial type = CompatibleMaterial.getMaterial(shot.getBlockType(x, y, z));
|
||||
|
||||
if (type == CompatibleMaterial.AIR || type == CompatibleMaterial.WATER) continue;
|
||||
final CompatibleMaterial type = CompatibleMaterial.getBlockMaterial(VERSION > 12
|
||||
? shot.getBlockType(x, y, z) : MaterialIDHelper.getLegacyMaterial(getBlockTypeID(shot, x, y, z)));
|
||||
|
||||
|
||||
if (type == null || type == CompatibleMaterial.AIR || type == CompatibleMaterial.WATER) continue;
|
||||
|
||||
blocks.add(new BlockInfo(world, x + (cX), y, z + (cZ)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user