diff --git a/src/main/java/cactusServer/entities/Instance.java b/src/main/java/cactusServer/entities/Instance.java index 23dd93c..51cad77 100644 --- a/src/main/java/cactusServer/entities/Instance.java +++ b/src/main/java/cactusServer/entities/Instance.java @@ -184,6 +184,14 @@ return this; } + public Character updateCharacter(String characterId, Position3D position, Quaternion3D angle, int modelID) { + Character character = characterMap.get(characterId); + if (character != null) { + character.update(position, angle, modelID); + } + return character; + } + public Bullet updateBullet(String playerId, String bulletId, Position3D position, Quaternion3D angle) { HashMap map = bulletMap.get(playerId); if (map != null) {