mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 15:05:33 +00:00
clarifying the exception message
This commit is contained in:
parent
ed739cff4f
commit
7e87fbbb7a
@ -52,7 +52,7 @@ abstract class Event{
|
|||||||
throw new \RuntimeException("Recursive event call detected (reached max depth of " . self::MAX_EVENT_CALL_DEPTH . " calls)");
|
throw new \RuntimeException("Recursive event call detected (reached max depth of " . self::MAX_EVENT_CALL_DEPTH . " calls)");
|
||||||
}
|
}
|
||||||
if($this instanceof AsyncEvent){
|
if($this instanceof AsyncEvent){
|
||||||
throw new \InvalidArgumentException("Cannot call async event synchronously");
|
throw new \InvalidArgumentException("Cannot call async event synchronously, use callAsync() instead");
|
||||||
}
|
}
|
||||||
|
|
||||||
$timings = Timings::getEventTimings($this);
|
$timings = Timings::getEventTimings($this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user