mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 06:55:11 +00:00
oops x4
This commit is contained in:
parent
94f2da1e38
commit
9cd5c1581b
@ -56,7 +56,7 @@ abstract class BaseEvent{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setAllowed($forceAllow = false){
|
public function setAllowed($forceAllow = false){
|
||||||
$this->status = BaseEvent::ALLOW & ($forceAllow === true ? BaseEvent::FORCE : 0);
|
$this->status = BaseEvent::ALLOW | ($forceAllow === true ? BaseEvent::FORCE : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isCancelled(){
|
public function isCancelled(){
|
||||||
@ -65,7 +65,7 @@ abstract class BaseEvent{
|
|||||||
|
|
||||||
public function setCancelled($forceCancel = false){
|
public function setCancelled($forceCancel = false){
|
||||||
if($this instanceof CancellableEvent){
|
if($this instanceof CancellableEvent){
|
||||||
$this->status = BaseEvent::DENY & ($forceCancel === true ? BaseEvent::FORCE : 0);
|
$this->status = BaseEvent::DENY | ($forceCancel === true ? BaseEvent::FORCE : 0);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user