From f8c7672cfaf44973c61bd886d2d19a42217c870a Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 10 May 2021 00:08:45 +0200 Subject: [PATCH] Fixed not using ItemMeta --- .../LinkedBeaconTeleporterManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/LinkedBeaconTeleporterManager.java b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/LinkedBeaconTeleporterManager.java index bb5c9a2..14d9501 100644 --- a/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/LinkedBeaconTeleporterManager.java +++ b/src/main/java/eu/ruekov/ruakij/LinkedBeaconTeleporters/linkedBeaconTeleporter/LinkedBeaconTeleporterManager.java @@ -102,10 +102,12 @@ public class LinkedBeaconTeleporterManager { return item; } public LinkedBeaconTeleporterItem getLbtItemFromItemStack(ItemStack itemStack){ + ItemMeta itemMeta = itemStack.getItemMeta(); + // Serialize String nameAndLore = serialiseBeaconItem( - itemStack.getI18NDisplayName(), - itemStack.getLore() + itemMeta.getDisplayName(), + itemMeta.getLore() ); // Regex match