fix: typo

This commit is contained in:
cha0s 2021-01-21 19:28:16 -06:00
parent c65ef534ce
commit dd6a5a8d38

View File

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