mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-27 02:34:45 +08:00
Fix node reference when changing elements
This commit is contained in:
@@ -66,13 +66,13 @@ export default class MirroredEntity extends IEntity {
|
||||
return this.getter?.().equals(other)
|
||||
}
|
||||
|
||||
/** @returns {InstanceType<T>} */
|
||||
valueOf() {
|
||||
this.valueOf = this.getter().valueOf.bind(this.getter())
|
||||
return this.valueOf()
|
||||
// @ts-expect-error
|
||||
return this.getter().valueOf()
|
||||
}
|
||||
|
||||
toString() {
|
||||
this.toString = this.getter().toString.bind(this.getter())
|
||||
return this.toString()
|
||||
return this.getter().toString()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user