WarpUI error
- Dominant language
- PHP
- Stars
- 15
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
```
[22:32:50.535] [Server thread/CRITICAL]: TypeError: "pocketmine\entity\Location::__construct(): Argument #4 ($world) must be of type ?pocketmine\world\World, float given, called in phar:///home/minecraft/plugins/WarpUI_dev-30.phar/src/xenialdan/WarpUI/Loader.php on line 81" (EXCEPTION) in "pmsrc/src/entity/Location" at line 37
--- Stack trace ---
#0 plugins/WarpUI_dev-30.phar/src/xenialdan/WarpUI/Loader(81): pocketmine\entity\Location->__construct(double 543.8235, double 164, double -614.049, double 1.5829467773438, double 73.360641479492, object pocketmine\world\World#106132)`
```
______
```
public static function getWarp(string $name): ?Location
{
$values = self::getInstance()->warps->get($name);
if ($values === false) {
return null;
}
try {
self::getInstance()->getServer()->getWorldManager()->loadWorld($values['levelname'], true);
} catch (WorldException $e) {
self::getInstance()->getLogger()->logException($e);
}
return new Location($values['x'], $values['y'], $values['z'], $values['yaw'], $values['pitch'], self::getInstance()->getServer()->getWorldManager()->getWorldByName($values['levelname']));
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.