Map fix (probably broken?!)

This commit is contained in:
Shaun Bennett 2015-11-12 21:35:01 -05:00
parent bbc7bf770c
commit f3e94cc035

View File

@ -804,34 +804,36 @@ public class ItemMapManager extends MiniPlugin
Block block = Blocks.AIR;
int i5 = 0;
if (l4 > 1)
{
do
{
l4--;
block = nmsChunk.getType(new BlockPosition(k3, l4, l3));
IBlockData data = nmsChunk.getBlockData(new BlockPosition(k3, l4, l3));
i5 = ;
}
while ((block.f(i5) == MaterialMapColor.b) && (l4 > 0));
if ((l4 > 0) && (block.getMaterial().isLiquid()))
{
int j5 = l4 - 1;
Block block1;
do
{
block1 = nmsChunk.getType(new BlockPosition(k3, j5--, l3));
}
while ((j5 > 0) && (block1.getMaterial().isLiquid()));
}
}
// if (l4 > 1)
// {
// do
// {
// l4--;
// block = nmsChunk.getType(new BlockPosition(k3, l4, l3));
// IBlockData data = nmsChunk.getBlockData(new BlockPosition(k3, l4, l3));
// i5 = ;
// }
// while ((block.f(i5) == MaterialMapColor.b) && (l4 > 0));
//
// if ((l4 > 0) && (block.getMaterial().isLiquid()))
// {
// int j5 = l4 - 1;
// Block block1;
// do
// {
// block1 = nmsChunk.getType(new BlockPosition(k3, j5--, l3));
// }
// while ((j5 > 0) && (block1.getMaterial().isLiquid()));
// }
// }
_heightMap[x + _halfMapSize + 16][z + _halfMapSize + 16] = l4;
if (setColors)
{
color = block.f(i5).M;
// color = block.f(i5).M;
IBlockData data = nmsChunk.getBlockData(new BlockPosition(k3, l4, l3));
color = data.getBlock().g(data).M;
color = (byte) ((color * 4) + 1);
}