Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ArmoredPet(LivingEntity entity, String name){
- super(entity, name);
- EntityEquipment equipment = entity.getEquipment();
- if(equipment == null){
- helmet = new ItemStack(Material.AIR);
- chestplate = new ItemStack(Material.AIR);
- pants = new ItemStack(Material.AIR);
- boots = new ItemStack(Material.AIR);
- weapon = new ItemStack(Material.AIR);
- return;
- }
- /* Line 44 of ArmoredPet.java */ weapon = equipment.getItemInHand() != null ? equipment.getItemInHand() : new ItemStack(Material.AIR);
- helmet = equipment.getHelmet() != null ? equipment.getHelmet() : new ItemStack(Material.AIR);
- chestplate = equipment.getChestplate() != null ? equipment.getChestplate() : new ItemStack(Material.AIR);
- boots = equipment.getBoots() != null ? equipment.getBoots() : new ItemStack(Material.AIR);
- pants = equipment.getLeggings() != null ? equipment.getLeggings() : new ItemStack(Material.AIR);
- }
Advertisement
Add Comment
Please, Sign In to add comment