mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01:00
Use Tamed instead of horse/ocelot/wolf
This commit is contained in:
parent
64743ef428
commit
9908eb0619
@ -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 New Issue
Block a user