mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 08:40:08 +00:00
Add support for turning to an entity on login.
This commit is contained in:
@@ -224,7 +224,7 @@ public abstract class Mob extends Entity {
|
|||||||
*
|
*
|
||||||
* @param definition The definition.
|
* @param definition The definition.
|
||||||
*/
|
*/
|
||||||
public NpcDefinition getNpcDefinition() {
|
public NpcDefinition getDefinition() {
|
||||||
return definition;
|
return definition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public abstract class SynchronizationBlock {
|
|||||||
public static SynchronizationBlock createAppearanceBlock(Player player) {
|
public static SynchronizationBlock createAppearanceBlock(Player player) {
|
||||||
return new AppearanceBlock(player.getEncodedName(), player.getAppearance(), player.getSkillSet()
|
return new AppearanceBlock(player.getEncodedName(), player.getAppearance(), player.getSkillSet()
|
||||||
.getCombatLevel(), 0, player.getEquipment(), player.getPrayerIcon(), player.getHeadIcon(),
|
.getCombatLevel(), 0, player.getEquipment(), player.getPrayerIcon(), player.getHeadIcon(),
|
||||||
player.getNpcDefinition() == null ? -1 : player.getNpcDefinition().getId());
|
player.getDefinition() == null ? -1 : player.getDefinition().getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public final class NpcSynchronizationTask extends SynchronizationTask {
|
|||||||
added++;
|
added++;
|
||||||
npc.turnTo(npc.getFacingPosition());
|
npc.turnTo(npc.getFacingPosition());
|
||||||
blockSet = npc.getBlockSet();
|
blockSet = npc.getBlockSet();
|
||||||
segments.add(new AddNpcSegment(blockSet, npc.getIndex(), npc.getPosition(), npc.getNpcDefinition()
|
segments.add(new AddNpcSegment(blockSet, npc.getIndex(), npc.getPosition(), npc.getDefinition()
|
||||||
.getId()));
|
.getId()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user