From 7342fafef55bca11900cce1dbec01fcf6d961d04 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Thu, 3 Oct 2019 19:56:55 -0400 Subject: [PATCH] Remove archaic try/catch --- .../main/java/me/blackvein/quests/QuestMob.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/QuestMob.java b/main/src/main/java/me/blackvein/quests/QuestMob.java index 643f2d5c2..7df200dd6 100644 --- a/main/src/main/java/me/blackvein/quests/QuestMob.java +++ b/main/src/main/java/me/blackvein/quests/QuestMob.java @@ -123,16 +123,11 @@ public class QuestMob { entity.setCustomNameVisible(true); } EntityEquipment eq = entity.getEquipment(); - try { - eq.setItemInHand(inventory[0]); - eq.setBoots(inventory[1]); - eq.setLeggings(inventory[2]); - eq.setChestplate(inventory[3]); - eq.setHelmet(inventory[4]); - } catch (Exception e) { - Bukkit.getLogger().severe("Entity NMS is invalid for this version of CraftBukkit. Please notify the developer"); - e.printStackTrace(); - } + eq.setItemInHand(inventory[0]); + eq.setBoots(inventory[1]); + eq.setLeggings(inventory[2]); + eq.setChestplate(inventory[3]); + eq.setHelmet(inventory[4]); if (dropChances[0] != null) { eq.setItemInHandDropChance(dropChances[0]); }