You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'x' of null
at isPositionNearPath (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:195:40)
at EventEmitter. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:288:9)
at EventEmitter.emit (events.js:315:20)
at WorldSync. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:470:44)
at WorldSync.emit (events.js:315:20)
at WorldSync._emitBlockUpdate (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:61:10)
at WorldSync.setBlockStateId (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:150:10)
at updateBlockState (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:257:15)
at Client. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:364:5)
at Client.emit (events.js:315:20)
`
Request
according to mineflayer api:https://github.com/PrismarineJS/mineflayer/blob/master/docs/api.md#blockupdate-oldblock-newblock
In BlockUpdate function,oldblock can be null
but your plugin does not handle such type of null error
it is suggested that in the isPositionNearPath function,you add null check error first
then everything will be solved
it can be predicted that more errors like this can show up because as i remember some other events also have null parameters
it is strongly recommended to review the code once a while in order to prevent them thereafter
The text was updated successfully, but these errors were encountered:
Error
`
} else { throw e }
^
TypeError: Cannot read property 'x' of null
at isPositionNearPath (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:195:40)
at EventEmitter. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer-pathfinder\index.js:288:9)
at EventEmitter.emit (events.js:315:20)
at WorldSync. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:470:44)
at WorldSync.emit (events.js:315:20)
at WorldSync._emitBlockUpdate (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:61:10)
at WorldSync.setBlockStateId (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\node_modules\prismarine-world\src\worldsync.js:150:10)
at updateBlockState (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:257:15)
at Client. (C:\Users\jjcde\AppData\Roaming\npm\node_modules\mineflayer\lib\plugins\blocks.js:364:5)
at Client.emit (events.js:315:20)
`
Request
according to mineflayer api:https://github.com/PrismarineJS/mineflayer/blob/master/docs/api.md#blockupdate-oldblock-newblock
In BlockUpdate function,oldblock can be null
but your plugin does not handle such type of null error
it is suggested that in the isPositionNearPath function,you add null check error first
then everything will be solved
it can be predicted that more errors like this can show up because as i remember some other events also have null parameters
it is strongly recommended to review the code once a while in order to prevent them thereafter
The text was updated successfully, but these errors were encountered: