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()) {
|
||||
if (!(entity instanceof ItemFrame)) continue;
|
||||
ItemFrame itemFrame = (ItemFrame) entity;
|
||||
ItemStack itemStack = itemFrame.getItem();
|
||||
if (itemStack.getType() != Material.FILLED_MAP) continue;
|
||||
itemFrame.setItem(new ItemStack(Material.FILLED_MAP, 1));
|
||||
Vector vector = itemFrame.getLocation().getBlock().getLocation().toVector();
|
||||
if (itemFrameIndex.containsKey(vector)) {
|
||||
if (itemFrames[itemFrameIndex.get(vector)] != null) continue;
|
||||
|
||||
Reference in New Issue
Block a user