More entities fixed

This commit is contained in:
barsdeveloper
2024-06-04 01:00:41 +02:00
parent 1a8636bb5d
commit c05e6d3cc9
15 changed files with 913 additions and 456 deletions

View File

@@ -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
}
}