fix: sync defaults

This commit is contained in:
cha0s 2021-01-17 21:09:28 -06:00
parent c218f91d71
commit b64073fe50

View File

@ -217,7 +217,16 @@ export default (latus) => class Entity extends decorate(JsonResource) {
}
}
if (updates.length > 0) {
packets.push(['EntityUpdateTrait', {traits: updates}]);
packets.push([
'EntityUpdateTrait',
{
synchronized: {
id: 0,
type: 0,
},
traits: updates,
},
]);
}
return packets;
}