Get 1.12.2 blockname based textures working

This commit is contained in:
Mike Primm 2018-08-05 21:27:18 -05:00
parent b4920e0246
commit 58d5e59616
5 changed files with 37 additions and 19 deletions

View file

@ -63,7 +63,7 @@ public class NewMapChunkCache extends MapChunkCache {
}
private static DynmapBlockState getTypeAt(ChunkSnapshot ss, int x, int y, int z) {
return (DynmapBlockState) BukkitVersionHelper.stateByID.get((ss.getBlockTypeId(x, y, z) << 4) | ss.getBlockData(x, y, z));
return BukkitVersionHelper.stateByID[(ss.getBlockTypeId(x, y, z) << 4) | ss.getBlockData(x, y, z)];
}
/**