diff --git a/lib/plugins/mover.js b/lib/plugins/mover.js index d93b12d..e147b13 100644 --- a/lib/plugins/mover.js +++ b/lib/plugins/mover.js @@ -167,8 +167,8 @@ function moveOrRide(turn = false, reverse = -1, directionLabel, message_parts2) // bot.once("attach", state = "vehiccel") if (bot.vehicle) { // FIXME moveVehicle should be +-1 or 0? - const amount = Math.sign(parseInt(message_parts2[0]) || -reverse) - bot.moveVehicle(turn && amount || 0, !turn && amount || 0) + const amount = parseInt(message_parts2[0]) * -reverse + bot.moveVehicle(turn && Math.sign(amount) || 0, !turn && amount || 0) } else { command([directionLabel].concat(message_parts2)) }