diff --git a/plugin.yml b/plugin.yml index ff16761..a910017 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,5 +1,5 @@ name: Vivecraft-Spigot-Extensions -version: '1.17.1-b1' +version: '1.17.1-b2' api-version: 1.17 main: org.vivecraft.VSE website: http://www.vivecraft.org/ diff --git a/src/org/vivecraft/VSE.java b/src/org/vivecraft/VSE.java index e3ea7a5..c3660d2 100644 --- a/src/org/vivecraft/VSE.java +++ b/src/org/vivecraft/VSE.java @@ -54,7 +54,7 @@ import net.milkbowl.vault.permission.Permission; import net.minecraft.network.Connection; -import net.minecraft.network.chat.TextComponent; +import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.goal.WrappedGoal; @@ -109,19 +109,6 @@ public void onEnable() { recipe.setIngredient('S', Material.SHEARS); Bukkit.addRecipe(recipe); } - { - ItemStack is = new ItemStack(Material.ENDER_EYE); - ItemMeta meta = is.getItemMeta(); - meta.setUnbreakable(true); - meta.addItemFlags(ItemFlag.HIDE_UNBREAKABLE); - is.setItemMeta(meta); - is = setLocalizedItemName(is, "vivecraft.item.telescope"); - ShapedRecipe recipe3 = new ShapedRecipe(new NamespacedKey(this, "telescope"), is); - recipe3.shape("DED"); - recipe3.setIngredient('D', Material.DIAMOND); - recipe3.setIngredient('E', Material.ENDER_EYE); - Bukkit.addRecipe(recipe3); - } } try { Metrics metrics = new Metrics(this, bStatsId); @@ -211,7 +198,7 @@ public void run() { public static ItemStack setLocalizedItemName(ItemStack stack, String key) { var nmsStack = CraftItemStack.asNMSCopy(stack); - nmsStack.setHoverName(new TextComponent(key)); + nmsStack.setHoverName(new TranslatableComponent(key)); return CraftItemStack.asBukkitCopy(nmsStack); } diff --git a/version.txt b/version.txt index 276013c..5bb34fa 100644 --- a/version.txt +++ b/version.txt @@ -1,3 +1,4 @@ #this file is used to check for updates 1.17.1-a1: VSE has a new version available. -1.17.1-b1: VSE is up to date. \ No newline at end of file +1.17.1-b1: VSE has a new version available. +1.17.1-b2: VSE is up to date. \ No newline at end of file