fix: typo
This commit is contained in:
parent
c65ef534ce
commit
dd6a5a8d38
|
@ -4,7 +4,7 @@ export default () => class TraitUpdateVisiblePacket extends Packet {
|
|||
|
||||
static pack(data) {
|
||||
return {
|
||||
isVisibile: data.isVisible,
|
||||
isVisible: data.isVisible,
|
||||
opacity: Math.floor(data.opacity * 255),
|
||||
};
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ export default () => class TraitUpdateVisiblePacket extends Packet {
|
|||
|
||||
static unpack(data) {
|
||||
return {
|
||||
isVisibile: data.isVisible,
|
||||
isVisible: data.isVisible,
|
||||
opacity: data.opacity / 255,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user