mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Use Tamed instead of horse/ocelot/wolf
This commit is contained in:
parent
64743ef428
commit
9908eb0619
1 changed files with 2 additions and 16 deletions
|
@ -107,23 +107,9 @@ public class Commandkillall extends EssentialsCommand
|
|||
{
|
||||
continue;
|
||||
}
|
||||
if (entity instanceof Wolf)
|
||||
if (entity instanceof Tameable)
|
||||
{
|
||||
if (((Wolf)entity).isTamed())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (entity instanceof Ocelot)
|
||||
{
|
||||
if (((Ocelot)entity).isTamed())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (entity instanceof Horse)
|
||||
{
|
||||
if (((Horse)entity).isTamed())
|
||||
if (((Tameable)entity).isTamed())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue