1
0
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:
Pocketkid2
2013-08-20 15:15:28 -07:00
committed by KHobbits
parent 64743ef428
commit 9908eb0619

View File

@@ -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;
}