1
0
forked from noxious/server

Removed redundant code

This commit is contained in:
2024-12-26 23:50:04 +01:00
parent e571cf2230
commit a95c67b5fe
6 changed files with 28 additions and 71 deletions

View File

@ -43,10 +43,10 @@ export class Character extends BaseEntity {
// Customization
@ManyToOne()
characterType?: CharacterType
characterType?: CharacterType | null | undefined
@ManyToOne()
characterHair?: CharacterHair
characterHair?: CharacterHair | null | undefined
// Inventory
@OneToMany({ mappedBy: 'character' })
@ -173,7 +173,7 @@ export class Character extends BaseEntity {
return this.rotation
}
setCharacterType(characterType: CharacterType | undefined) {
setCharacterType(characterType: CharacterType | null | undefined) {
this.characterType = characterType
return this
}
@ -182,7 +182,7 @@ export class Character extends BaseEntity {
return this.characterType
}
setCharacterHair(characterHair: CharacterHair | undefined) {
setCharacterHair(characterHair: CharacterHair | null | undefined) {
this.characterHair = characterHair
return this
}