From f97cc2ca612bdcc78a68469a280d7ce15c88f881 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 2 Dec 2024 17:24:17 +0100 Subject: [PATCH] Hotfix CustomMap --- LobbySystem/src/de/steamwar/lobby/map/CustomMap.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;