mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-15 22:05:06 +00:00
Fixed the first letter of event timing names getting trimmed off when src-namespace-prefix is not used
This commit is contained in:
@ -655,7 +655,7 @@ class PluginManager{
|
||||
}
|
||||
|
||||
$prefix = $plugin->getDescription()->getSrcNamespacePrefix();
|
||||
if(str_starts_with($handlerName, $prefix)){
|
||||
if(str_starts_with($handlerName, $prefix) && $prefix !== ""){
|
||||
$handlerName = substr($handlerName, strlen($prefix) + 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user