mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +01:00
Remove archaic try/catch
This commit is contained in:
parent
e679128ba2
commit
7342fafef5
@ -123,16 +123,11 @@ public class QuestMob {
|
|||||||
entity.setCustomNameVisible(true);
|
entity.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
EntityEquipment eq = entity.getEquipment();
|
EntityEquipment eq = entity.getEquipment();
|
||||||
try {
|
|
||||||
eq.setItemInHand(inventory[0]);
|
eq.setItemInHand(inventory[0]);
|
||||||
eq.setBoots(inventory[1]);
|
eq.setBoots(inventory[1]);
|
||||||
eq.setLeggings(inventory[2]);
|
eq.setLeggings(inventory[2]);
|
||||||
eq.setChestplate(inventory[3]);
|
eq.setChestplate(inventory[3]);
|
||||||
eq.setHelmet(inventory[4]);
|
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();
|
|
||||||
}
|
|
||||||
if (dropChances[0] != null) {
|
if (dropChances[0] != null) {
|
||||||
eq.setItemInHandDropChance(dropChances[0]);
|
eq.setItemInHandDropChance(dropChances[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user