This commit is contained in:
samczsun 2017-03-09 20:09:25 -05:00 committed by cnr
parent e0706f3627
commit 40860ef9a2
1 changed files with 12 additions and 12 deletions

View File

@ -298,9 +298,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
DisguiseGuardian disguise = new DisguiseGuardian(pet);
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
disguise.setName(Get(player).getPets().get(entityType));
disguise.setName(Get(player).getPets().get(petType));
disguise.setCustomNameVisible(true);
}
@ -315,9 +315,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
Zombie zombie = pet.getWorld().spawn(pet.getLocation(), Zombie.class);
zombie.setBaby(true);
zombie.getEquipment().setHelmet(new ItemStack(Material.PUMPKIN));
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
zombie.setCustomName(Get(player).getPets().get(entityType));
zombie.setCustomName(Get(player).getPets().get(petType));
zombie.setCustomNameVisible(true);
}
disguise.getEntity().getBukkitEntity().setPassenger(zombie);
@ -330,9 +330,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
disguiseZombie.setChestplate(new ItemStack(Material.BANNER));
disguiseZombie.setHeldItem(new ItemStack(Material.WOOD_HOE));
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
disguiseZombie.setName(Get(player).getPets().get(entityType));
disguiseZombie.setName(Get(player).getPets().get(petType));
disguiseZombie.setCustomNameVisible(true);
}
@ -352,9 +352,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
UtilEnt.silence(zombie, true);
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
zombie.setCustomName(Get(player).getPets().get(entityType));
zombie.setCustomName(Get(player).getPets().get(petType));
zombie.setCustomNameVisible(true);
}
}
@ -367,9 +367,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
disguiseVillager.setBaby();
disguiseVillager.setHeldItem(new ItemStack(Material.BOW));
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
disguiseVillager.setName(Get(player).getPets().get(entityType));
disguiseVillager.setName(Get(player).getPets().get(petType));
disguiseVillager.setCustomNameVisible(true);
}
@ -384,9 +384,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
UtilEnt.silence(zombie, true);
if (Get(player).getPets().get(entityType) != null && Get(player).getPets().get(entityType).length() > 0)
if (Get(player).getPets().get(petType) != null && Get(player).getPets().get(petType).length() > 0)
{
zombie.setCustomName(Get(player).getPets().get(entityType));
zombie.setCustomName(Get(player).getPets().get(petType));
zombie.setCustomNameVisible(true);
}