diff --git a/LobbySystem/src/de/steamwar/lobby/map/CustomMap.java b/LobbySystem/src/de/steamwar/lobby/map/CustomMap.java index 002ba041..f3d944ae 100644 --- a/LobbySystem/src/de/steamwar/lobby/map/CustomMap.java +++ b/LobbySystem/src/de/steamwar/lobby/map/CustomMap.java @@ -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;