chore: acceptStateChange -> patchState

This commit is contained in:
cha0s 2019-04-05 16:16:50 -04:00
parent 3ebff2e28f
commit 8d0dd86488
2 changed files with 5 additions and 5 deletions

View File

@ -184,7 +184,7 @@ function onMessage({type, payload}) {
if (payload.selfEntity) {
selfEntity = payload.selfEntity;
}
stateSynchronizer.acceptStateChange(payload);
stateSynchronizer.patchState(payload);
dirty = true;
break;
default:

View File

@ -11,10 +11,6 @@ export class WorldTime {
});
}
acceptStateChange(change) {
this.hour = change;
}
hour() {
return this.hour;
}
@ -31,6 +27,10 @@ export class WorldTime {
}
}
patchState(patch) {
this.hour = patch;
}
secondsPerHour() {
return 60;
}