Merge pull request #1579 from taion/fix-listener-return
fix: Fix handling listener return value
This commit is contained in:
commit
cb4dab4250
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user