hurb
This commit is contained in:
parent
1335b2e759
commit
d9dd549597
1 changed files with 5 additions and 3 deletions
|
@ -86,11 +86,13 @@ public class Main extends JavaPlugin implements Listener {
|
|||
public void run() {
|
||||
for (Entity e : giants) {
|
||||
List<Entity> passengers = e.getPassengers();
|
||||
if (passengers.size() > 0) {
|
||||
passengers.removeIf(n -> (n.getType() != EntityType.HUSK));
|
||||
Location loc = passengers.get(0).getLocation();
|
||||
e.setRotation(loc.getYaw(), loc.getPitch());
|
||||
}
|
||||
}
|
||||
}
|
||||
}.runTaskTimerAsynchronously(this, refreshDelay, 0L);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue