PC-1107
This commit is contained in:
parent
e0706f3627
commit
40860ef9a2
@ -298,9 +298,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
|
|
||||||
DisguiseGuardian disguise = new DisguiseGuardian(pet);
|
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);
|
disguise.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,9 +315,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
Zombie zombie = pet.getWorld().spawn(pet.getLocation(), Zombie.class);
|
Zombie zombie = pet.getWorld().spawn(pet.getLocation(), Zombie.class);
|
||||||
zombie.setBaby(true);
|
zombie.setBaby(true);
|
||||||
zombie.getEquipment().setHelmet(new ItemStack(Material.PUMPKIN));
|
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);
|
zombie.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
disguise.getEntity().getBukkitEntity().setPassenger(zombie);
|
disguise.getEntity().getBukkitEntity().setPassenger(zombie);
|
||||||
@ -330,9 +330,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
disguiseZombie.setChestplate(new ItemStack(Material.BANNER));
|
disguiseZombie.setChestplate(new ItemStack(Material.BANNER));
|
||||||
disguiseZombie.setHeldItem(new ItemStack(Material.WOOD_HOE));
|
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);
|
disguiseZombie.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,9 +352,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
|
|
||||||
UtilEnt.silence(zombie, true);
|
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);
|
zombie.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -367,9 +367,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
disguiseVillager.setBaby();
|
disguiseVillager.setBaby();
|
||||||
disguiseVillager.setHeldItem(new ItemStack(Material.BOW));
|
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);
|
disguiseVillager.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -384,9 +384,9 @@ public class PetManager extends MiniClientPlugin<PetClient>
|
|||||||
|
|
||||||
UtilEnt.silence(zombie, true);
|
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);
|
zombie.setCustomNameVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user