mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Merge commit '097c260db'
# Conflicts: # resources/vanilla # src/item/enchantment/Enchantment.php # src/plugin/PluginDescription.php # src/pocketmine/entity/Effect.php # src/pocketmine/item/ItemFactory.php # src/pocketmine/plugin/PluginManager.php
This commit is contained in:
@@ -25,7 +25,7 @@ namespace pocketmine\event;
|
||||
|
||||
use function constant;
|
||||
use function defined;
|
||||
use function strtoupper;
|
||||
use function mb_strtoupper;
|
||||
|
||||
/**
|
||||
* List of event priorities
|
||||
@@ -84,7 +84,7 @@ final class EventPriority{
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public static function fromString(string $name) : int{
|
||||
$name = strtoupper($name);
|
||||
$name = mb_strtoupper($name);
|
||||
$const = self::class . "::" . $name;
|
||||
if($name !== "ALL" and defined($const)){
|
||||
return constant($const);
|
||||
|
Reference in New Issue
Block a user