Skip to content

Commit

Permalink
fix: gamemode -1 is not spectator, fallback to survival
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Nov 2, 2024
1 parent 519acba commit ece6755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const dimensionNames = {
1: 'the_end'
}

const parseGameMode = gameModeBits => gameModes[(gameModeBits & 0b11)] // lower two bits
const parseGameMode = gameModeBits => gameModes[gameModeBits] ?? gameModes[0]

function inject (bot, options) {
function getBrandCustomChannelName () {
Expand Down

0 comments on commit ece6755

Please sign in to comment.