fix: don't send whole state in packets

This commit is contained in:
cha0s 2019-10-03 15:33:36 -05:00
parent 279db3e018
commit db9042f699

View File

@ -51,7 +51,9 @@ export class Plant extends decorate(Trait) {
packets(informed) { packets(informed) {
const {growthStage} = this.stateDifferences(); const {growthStage} = this.stateDifferences();
if (growthStage) { if (growthStage) {
return new TraitUpdatePlantPacket(this.state); return new TraitUpdatePlantPacket({
growthStage: this.state.growthStage,
});
} }
} }