Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when used #2

Open
benda95280 opened this issue Jun 12, 2021 · 4 comments
Open

Crash when used #2

benda95280 opened this issue Jun 12, 2021 · 4 comments

Comments

@benda95280
Copy link

Error when used
Data plugin : DAta.zip

Error log :

10:09:27 Server|CRITICAL > TypeError: "Argument 1 passed to tatchan\WraithPortal\task\PortalTpTask::__construct() must be an instance of tatchan\WraithPortal\WraithPortal, null given, called in C:\Users\Benjamin\Documents\PMMP-Rapto\plugins\WraithPortal-master\src\tatchan\WraithPortal\PortalManger.php on line 135" (EXCEPTION) in "plugins/WraithPortal-master/src/tatchan/WraithPortal/task/PortalTpTask" at line 25

10:09:27 Server|CRITICAL > #0 plugins/WraithPortal-master/src/tatchan/WraithPortal/PortalManger(135): tatchan\WraithPortal\task\PortalTpTask->__construct(NULL , object pocketmine\Player, boolean 1)
10:09:27 Server|CRITICAL > #1 plugins/WraithPortal-master/src/tatchan/WraithPortal/WraithPortal(38): tatchan\WraithPortal\PortalManger->useportal(object tatchan\WraithPortal\WraithPortal, object pocketmine\Player)
10:09:27 Server|CRITICAL > #2 pmsrc/src/pocketmine/Player(1682): tatchan\WraithPortal\WraithPortal->onCollideWithPlayer(object pocketmine\Player)
10:09:27 Server|CRITICAL > #3 pmsrc/src/pocketmine/Player(1914): pocketmine\Player->checkNearEntities()
10:09:27 Server|CRITICAL > #4 pmsrc/src/pocketmine/level/Level(909): pocketmine\Player->onUpdate(integer 627)
10:09:27 Server|CRITICAL > #5 pmsrc/src/pocketmine/level/Level(837): pocketmine\level\Level->actuallyDoTick(integer 627)
10:09:27 Server|CRITICAL > #6 pmsrc/src/pocketmine/Server(2371): pocketmine\level\Level->doTick(integer 627)
10:09:27 Server|CRITICAL > #7 pmsrc/src/pocketmine/Server(2494): pocketmine\Server->checkTickUpdates(integer 627, double 1623488967.3047)
10:09:27 Server|CRITICAL > #8 pmsrc/src/pocketmine/Server(2262): pocketmine\Server->tick()
10:09:27 Server|CRITICAL > #9 pmsrc/src/pocketmine/Server(2105): pocketmine\Server->tickProcessor()
10:09:27 Server|CRITICAL > #10 pmsrc/src/pocketmine/Server(1689): pocketmine\Server->start()
10:09:27 Server|CRITICAL > #11 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\Benjamin\Documents\PMMP-Rapto\, string[47] C:\Users\Benjamin\Documents\PMMP-Rapto\plugins\)
10:09:27 Server|CRITICAL > #12 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
10:09:27 Server|CRITICAL > #13 pmsrc(11): require(string[86] phar://C:/Users/Benjamin/Documents/PMMP-Rapto/Altay.phar/src/pocketmine/PocketMi)

@benda95280
Copy link
Author

Same error with lastest PR

@TATCHAN0825
Copy link
Owner

Excuse me Delete PortalData and try again

@benda95280
Copy link
Author

Same error.
I've try to take a look, below the result of :

    public function getportalentity(Position $position) {
        /** @var WraithPortal|null $portal */
		var_dump($position->getLevelNonNull()->getName());
		var_dump($position->getLevelNonNull()->getNearestEntity($position, 1, WraithPortal::class));
		var_dump($position->getLevelNonNull()->getNearestEntity($position, 2, WraithPortal::class));
		var_dump($position->getLevelNonNull()->getNearestEntity($position, 1));
		var_dump($position->getLevelNonNull()->getNearestEntity($position, 40));
        return $position->getLevelNonNull()->getNearestEntity($position, 1, WraithPortal::class);
    }
string(4) "Test"
NULL
NULL
NULL
NULL

@benda95280
Copy link
Author

Last PR fix the crash :)
But do not work 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants