chore: format
This commit is contained in:
parent
2dca6509fb
commit
bda4b6383e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user