Skip to content

Commit

Permalink
improvement probably
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 2, 2017
1 parent ee400ac commit 614b0b0
Showing 1 changed file with 9 additions and 7 deletions.
Expand Up @@ -96,16 +96,18 @@ private void sitInternal() {
}

private void standInternal() {
Entity vehicle = npc.getEntity().getVehicle();
npc.despawn();
npc.spawn(npc.getStoredLocation().clone().add(0, 0.5, 0));
if (vehicle != null && vehicle.isValid()) {
vehicle.setPassenger(null);
vehicle.remove();
}
if (npc.getEntity() instanceof Player) {
PlayerAnimation.STOP_SITTING.play((Player) npc.getEntity());
}
else {
Entity vehicle = npc.getEntity().getVehicle();
npc.despawn();
npc.spawn(npc.getStoredLocation().clone().add(0, 0.5, 0));
if (vehicle != null && vehicle.isValid()) {
vehicle.setPassenger(null);
vehicle.remove();
}
}
//eh.getDataWatcher().watch(0, (byte) 0x00);
sitting = false;
}
Expand Down

0 comments on commit 614b0b0

Please sign in to comment.