Skip to content
Permalink
Browse files

limit some animation code to 1.9+

  • Loading branch information...
mcmonkey4eva committed Nov 16, 2018
1 parent 0f3f84d commit bb98d0732a672972a3d0a98ccf184900ae476e1e
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
@@ -738,16 +738,16 @@ public void useItem() {
if (npc.isSpawned() && getLivingEntity() instanceof Player) {
if (SentinelTarget.v1_9) {
PlayerAnimation.START_USE_MAINHAND_ITEM.play((Player) getLivingEntity());
}
BukkitRunnable runner = new BukkitRunnable() {
@Override
public void run() {
if (npc.isSpawned() && getLivingEntity() instanceof Player) {
PlayerAnimation.STOP_USE_ITEM.play((Player) getLivingEntity());
BukkitRunnable runner = new BukkitRunnable() {
@Override
public void run() {
if (npc.isSpawned() && getLivingEntity() instanceof Player) {
PlayerAnimation.STOP_USE_ITEM.play((Player) getLivingEntity());
}
}
}
};
runner.runTaskLater(SentinelPlugin.instance, 10);
};
runner.runTaskLater(SentinelPlugin.instance, 10);
}
}
}

0 comments on commit bb98d07

Please sign in to comment.
You can’t perform that action at this time.