mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Cancel correctly Handling Events using return true
This commit is contained in:
parent
bc5516867c
commit
3432a69a41
5 changed files with 11 additions and 5 deletions
|
|
@ -216,7 +216,7 @@ class PocketMinecraftServer{
|
|||
$this->preparedSQL->selectHandlers->clear();
|
||||
$this->preparedSQL->selectHandlers->bindValue(":name", $event, SQLITE3_TEXT);
|
||||
$handlers = $this->preparedSQL->selectHandlers->execute();
|
||||
$result = true;
|
||||
$result = null;
|
||||
if($handlers !== false and $handlers !== true){
|
||||
console("[INTERNAL] Handling ".$event, true, true, 3);
|
||||
$call = array();
|
||||
|
|
@ -225,7 +225,7 @@ class PocketMinecraftServer{
|
|||
}
|
||||
$handlers->finalize();
|
||||
foreach($call as $hnid => $boolean){
|
||||
if($result !== false){
|
||||
if($result !== false and $result !== true){
|
||||
$called[$hnid] = true;
|
||||
$handler = $this->handlers[$hnid];
|
||||
if(is_array($handler)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue