Fix end portal bug with packets
This commit is contained in:
parent
945f3a8276
commit
da1a55616d
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,7 @@ module.exports = {
|
|||
})
|
||||
}
|
||||
|
||||
// Gamemode
|
||||
// Gamemode / end portal bug
|
||||
b.add_sc_task('gamemode', () => {
|
||||
b.chat('/minecraft:gamemode creative')
|
||||
})
|
||||
|
@ -67,6 +67,8 @@ module.exports = {
|
|||
b.sc_tasks.gamemode.failed = 1
|
||||
} else if (p.reason === 3 && p.gameMode === 1) {
|
||||
b.sc_tasks.gamemode.failed = 0
|
||||
} else if (p.reason === 4){
|
||||
b.sc_tasks.respawn.failed = 1
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue