mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Use Tamed instead of horse/ocelot/wolf
This commit is contained in:
@@ -107,23 +107,9 @@ public class Commandkillall extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (entity instanceof Wolf)
|
if (entity instanceof Tameable)
|
||||||
{
|
{
|
||||||
if (((Wolf)entity).isTamed())
|
if (((Tameable)entity).isTamed())
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (entity instanceof Ocelot)
|
|
||||||
{
|
|
||||||
if (((Ocelot)entity).isTamed())
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (entity instanceof Horse)
|
|
||||||
{
|
|
||||||
if (((Horse)entity).isTamed())
|
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user