mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 22:34:44 +08:00
More entities fixed
This commit is contained in:
@@ -9,7 +9,8 @@ export default class ByteEntity extends IntegerEntity {
|
||||
return super.value
|
||||
}
|
||||
set value(value) {
|
||||
if (value % 1 == 0 && value >= 0 && value < 1 << 8) {
|
||||
value = Math.trunc(value)
|
||||
if (value >= 0 && value < 1 << 8) {
|
||||
super.value = value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user