mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Small refactoring
This commit is contained in:
@@ -11,6 +11,11 @@ export default class IntegerEntity extends Entity {
|
||||
}
|
||||
|
||||
constructor(options = {}) {
|
||||
if (options.constructor === Number || options.constructor === String) {
|
||||
options = {
|
||||
value: options
|
||||
}
|
||||
}
|
||||
super(options)
|
||||
this.value = Math.round(this.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user