From f3e94cc035f34161654620c503552528776023c1 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Thu, 12 Nov 2015 21:35:01 -0500 Subject: [PATCH] Map fix (probably broken?!) --- .../game/clans/clans/map/ItemMapManager.java | 48 ++++++++++--------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/map/ItemMapManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/map/ItemMapManager.java index 623145ead..89e29ded1 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/map/ItemMapManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/map/ItemMapManager.java @@ -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); }