Removed unnecessary declaration
@@ -223,8 +223,7 @@ private void respawnPlayer(EntityRef clientEntity) {
location.setWorldPosition(spawnPosition);
clientEntity.saveComponent(location);
- AliveCharacterComponent aliveCharacterComponent = new AliveCharacterComponent();
- playerCharacter.addComponent(aliveCharacterComponent);
+ playerCharacter.addComponent(new AliveCharacterComponent());
playerCharacter.send(new CharacterTeleportEvent(spawnPosition));
logger.debug("Re-spawing player at: {}", spawnPosition);
