diff --git a/src/main/java/cactusServer/entities/Instance.java b/src/main/java/cactusServer/entities/Instance.java index e273e3b..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) { @@ -212,7 +220,7 @@ HashMap map = bulletMap.get(playerId); if (map != null) { Bullet removedBullet = map.remove(bulletId); - this.getUniverse().displace(removedBullet.getPlaceable()); + universe.displace(removedBullet.getPlaceable()); return removedBullet; } return null;