chore: names

This commit is contained in:
cha0s 2021-02-17 13:22:13 -06:00
parent 9608f6d067
commit 9425452ec6

View File

@ -16,6 +16,12 @@ export default (latus) => class Plant extends decorate(Trait) {
this.growthElapsed = 0;
}
acceptPacket(packet) {
if ('TraitUpdatePlant' === packet.constructor.type) {
this.entity.growthStage = packet.data.growthStage;
}
}
static defaultParams() {
return {
growthCondition: {
@ -58,12 +64,6 @@ export default (latus) => class Plant extends decorate(Trait) {
};
}
acceptPacket(packet) {
if ('TraitUpdatePlant' === packet.constructor.type) {
this.entity.growthStage = packet.data.growthStage;
}
}
listeners() {
return {