mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 09:26:06 +00:00
Removed unused code, fixed undefined variables
This commit is contained in:
@ -54,6 +54,7 @@ abstract class Event{
|
||||
throw new \BadMethodCallException("Event is not Cancellable");
|
||||
}
|
||||
|
||||
/** @var Event $this */
|
||||
return $this->isCancelled === true;
|
||||
}
|
||||
|
||||
@ -68,6 +69,8 @@ abstract class Event{
|
||||
if(!($this instanceof Cancellable)){
|
||||
throw new \BadMethodCallException("Event is not Cancellable");
|
||||
}
|
||||
|
||||
/** @var Event $this */
|
||||
$this->isCancelled = (bool) $value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user