fix: don't send whole state in packets
This commit is contained in:
parent
279db3e018
commit
db9042f699
|
@ -51,7 +51,9 @@ export class Plant extends decorate(Trait) {
|
|||
packets(informed) {
|
||||
const {growthStage} = this.stateDifferences();
|
||||
if (growthStage) {
|
||||
return new TraitUpdatePlantPacket(this.state);
|
||||
return new TraitUpdatePlantPacket({
|
||||
growthStage: this.state.growthStage,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user