From 8d0dd86488b55bae84f87ca4356372d85a93e12e Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 5 Apr 2019 16:16:50 -0400 Subject: [PATCH] chore: acceptStateChange -> patchState --- client/index.js | 2 +- common/world-time.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/index.js b/client/index.js index 93bb89d..e6b9077 100644 --- a/client/index.js +++ b/client/index.js @@ -184,7 +184,7 @@ function onMessage({type, payload}) { if (payload.selfEntity) { selfEntity = payload.selfEntity; } - stateSynchronizer.acceptStateChange(payload); + stateSynchronizer.patchState(payload); dirty = true; break; default: diff --git a/common/world-time.js b/common/world-time.js index 1b5e689..c0cbfec 100644 --- a/common/world-time.js +++ b/common/world-time.js @@ -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; }