forked from SteamWar/SteamWar
Hotfix CustomMap
This commit is contained in:
@@ -97,8 +97,7 @@ public class CustomMap implements Listener {
|
|||||||
for (Entity entity : event.getChunk().getEntities()) {
|
for (Entity entity : event.getChunk().getEntities()) {
|
||||||
if (!(entity instanceof ItemFrame)) continue;
|
if (!(entity instanceof ItemFrame)) continue;
|
||||||
ItemFrame itemFrame = (ItemFrame) entity;
|
ItemFrame itemFrame = (ItemFrame) entity;
|
||||||
ItemStack itemStack = itemFrame.getItem();
|
itemFrame.setItem(new ItemStack(Material.FILLED_MAP, 1));
|
||||||
if (itemStack.getType() != Material.FILLED_MAP) continue;
|
|
||||||
Vector vector = itemFrame.getLocation().getBlock().getLocation().toVector();
|
Vector vector = itemFrame.getLocation().getBlock().getLocation().toVector();
|
||||||
if (itemFrameIndex.containsKey(vector)) {
|
if (itemFrameIndex.containsKey(vector)) {
|
||||||
if (itemFrames[itemFrameIndex.get(vector)] != null) continue;
|
if (itemFrames[itemFrameIndex.get(vector)] != null) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user