mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 19:44:15 +02:00
Use Tamed instead of horse/ocelot/wolf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user