fix: Fix handling listener return value

This commit is contained in:
Jimmy Jia 2019-09-25 14:21:13 -04:00
parent dfc09b8e04
commit 72afffbc8d
No known key found for this signature in database
GPG Key ID: 912C87C900654CDF

View File

@ -513,7 +513,7 @@ class Listeners {
}
// Only call default handler if not prevented in custom handler
if (returned && is.function(defaultHandler)) {
if (returned !== false && is.function(defaultHandler)) {
defaultHandler.call(player, event);
}
}