chore: format

This commit is contained in:
cha0s 2019-04-13 16:19:51 -05:00
parent 2dca6509fb
commit bda4b6383e

View File

@ -60,7 +60,6 @@ const synchronizer = new Synchronizer({
room,
worldTime,
});
const unpacker = new Unpacker();
room.on('entityAdded', (entity) => {
// Traits that shouldn't be on client.
const noClientTraits = [
@ -238,6 +237,7 @@ const predictionHandle = setInterval(() => {
}, 1000 / 60);
// State updates.
const unpacker = new Unpacker();
function onPacket(packet) {
if (packet instanceof KeysPacket) {
unpacker.registerKeys(packet.data);