From 609090a644d8cfc8f0897bfc7b83d06a804754c8 Mon Sep 17 00:00:00 2001 From: Alvin Dimas Praditya Date: Mon, 19 Aug 2024 18:27:33 +0700 Subject: [PATCH] fix itemmeta null --- src/main/java/org/alvindimas05/lagassist/MonTools.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/alvindimas05/lagassist/MonTools.java b/src/main/java/org/alvindimas05/lagassist/MonTools.java index 30ddd69..cd7d8e1 100644 --- a/src/main/java/org/alvindimas05/lagassist/MonTools.java +++ b/src/main/java/org/alvindimas05/lagassist/MonTools.java @@ -58,6 +58,8 @@ public static void Enabler(boolean reload) { } else { MapView map = Bukkit.createMap(Bukkit.getWorlds().get(0)); mapitem = createMapItem(map); + mapitemmeta = mapitem.getItemMeta(); + map.getRenderers().clear(); map.addRenderer(new TpsRender()); }