Closed peakpg closed 11 years ago
* [out :: affric.browsermedia.com] TypeError: Cannot call method 'drink' of undefined * [out :: affric.browsermedia.com] at ChildProcess.init (/var/www/vhosts/beercamp/releases/20130308143024/game/server/levels.js:39:31) * [out :: affric.browsermedia.com] at ChildProcess.EventEmitter.emit (events.js:99:17) * [out :: affric.browsermedia.com] at handleMessage (child_process.js:273:12) * [out :: affric.browsermedia.com] at Pipe.channel.onread (child_process.js:293:9) * [out :: affric.browsermedia.com] * [out :: affric.browsermedia.com] events.js:71 * [out :: affric.browsermedia.com] throw arguments[1]; // Unhandled 'error' event
added entity check before entity.drink() to prevent server crash when entity is undefined 9cc9fbc51da95c461efde2326ff182c4df29ce4e
* [out :: affric.browsermedia.com] TypeError: Cannot call method 'drink' of undefined * [out :: affric.browsermedia.com] at ChildProcess.init (/var/www/vhosts/beercamp/releases/20130308143024/game/server/levels.js:39:31) * [out :: affric.browsermedia.com] at ChildProcess.EventEmitter.emit (events.js:99:17) * [out :: affric.browsermedia.com] at handleMessage (child_process.js:273:12) * [out :: affric.browsermedia.com] at Pipe.channel.onread (child_process.js:293:9) * [out :: affric.browsermedia.com] * [out :: affric.browsermedia.com] events.js:71 * [out :: affric.browsermedia.com] throw arguments[1]; // Unhandled 'error' event