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