Fix issue #256 and fix issue #287

This commit is contained in:
walterhiggins 2016-03-19 12:09:26 +00:00
parent c036e38f37
commit 8bc648ec29

View file

@ -69,7 +69,7 @@ exports.on = function(
The workaround is to make the ScriptCraftPlugin java class a Listener.
Should only unregister() registered plugins in ScriptCraft js code.
*/
regd = new bkRegisteredListener( __plugin, eventExecutor, priority, __plugin, true );
regd = new bkRegisteredListener( __plugin, eventExecutor, priority, __plugin, false );
handlerList.register( regd );
result.unregister = function(){
handlerList.unregister( regd );