mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-23 11:54:04 +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:
parent
5e1f837a73
commit
bed218d1dd
@ -655,7 +655,7 @@ class PluginManager{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$prefix = $plugin->getDescription()->getSrcNamespacePrefix();
|
$prefix = $plugin->getDescription()->getSrcNamespacePrefix();
|
||||||
if(str_starts_with($handlerName, $prefix)){
|
if(str_starts_with($handlerName, $prefix) && $prefix !== ""){
|
||||||
$handlerName = substr($handlerName, strlen($prefix) + 1);
|
$handlerName = substr($handlerName, strlen($prefix) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user