Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbudda committed Jul 27, 2021
1 parent 91d0307 commit 5a7c22b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
17 changes: 2 additions & 15 deletions src/org/vivecraft/VSE.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down
3 changes: 2 additions & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -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.
1.17.1-b1: VSE has a new version available.
1.17.1-b2: VSE is up to date.

0 comments on commit 5a7c22b

Please sign in to comment.