mirror of https://github.com/bra1n/townsquare.git
empty block at night
This commit is contained in:
parent
943d228e98
commit
f0619bdaeb
|
@ -691,6 +691,9 @@ class LiveSession {
|
||||||
setIsNight() {
|
setIsNight() {
|
||||||
if (this._isSpectator) return;
|
if (this._isSpectator) return;
|
||||||
this._send("isNight", this._store.state.grimoire.isNight);
|
this._send("isNight", this._store.state.grimoire.isNight);
|
||||||
|
if (this._store.state.grimoire.isNight) {
|
||||||
|
this._store.commit("players/setOnBlock", -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue