From 45ea9aed1908bbfa88f931098692793b53d5a8e0 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Wed, 9 Aug 2023 20:38:03 +0300 Subject: [PATCH] minor fixes... --- build.js | 1 + index.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 0b9496f..3994764 100644 --- a/build.js +++ b/build.js @@ -1,6 +1,7 @@ const fsExtra = require('fs-extra') exports.copyFiles = () => { + fsExtra.copySync('styles.css', 'public/styles.css') fsExtra.copySync('node_modules/prismarine-viewer/public/blocksStates/', 'public/blocksStates/') fsExtra.copySync('node_modules/prismarine-viewer/public/textures/', 'public/textures/') fsExtra.copySync('node_modules/prismarine-viewer/public/worker.js', 'public/worker.js') diff --git a/index.js b/index.js index 28fabf4..f65257b 100644 --- a/index.js +++ b/index.js @@ -399,10 +399,10 @@ async function connect (options) { bot.setControlState('jump', false) break case 'KeyD': - bot.setControlState('left', false) + bot.setControlState('right', false) break case 'KeyA': - bot.setControlState('right', false) + bot.setControlState('left', false) break case 'KeyS': bot.setControlState('back', false)