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

Attribute defaults are not adjusted when min/max is changed #2599

Closed
Danding1314 opened this issue Dec 22, 2018 · 3 comments
Closed

Attribute defaults are not adjusted when min/max is changed #2599

Danding1314 opened this issue Dec 22, 2018 · 3 comments
Labels
Category: Core Related to internal functionality Resolution: Fixed

Comments

@Danding1314
Copy link

Danding1314 commented Dec 22, 2018

[18:10:49] [Server thread/INFO]: YIVKnufeng fell from a high place
[18:10:50] [Server thread/CRITICAL]: InvalidArgumentException: "Value 20 exceeds the range!" (EXCEPTION) in "src/pocketmine/entity/Attribute" at line 191
[18:10:50] [Server thread/DEBUG]: #0 src/pocketmine/entity/Attribute(174): pocketmine\entity\Attribute->setValue(double 20)
[18:10:50] [Server thread/DEBUG]: #1 src/pocketmine/Player(3618): pocketmine\entity\Attribute->resetToDefault()
[18:10:50] [Server thread/DEBUG]: #2 src/pocketmine/Player(2750): pocketmine\Player->respawn()
[18:10:50] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(163): pocketmine\Player->handlePlayerAction(pocketmine\network\mcpe\protocol\PlayerActionPacket object)
[18:10:50] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/protocol/PlayerActionPacket(88): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handlePlayerAction(pocketmine\network\mcpe\protocol\PlayerActionPacket object)
[18:10:50] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(99): pocketmine\network\mcpe\protocol\PlayerActionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[18:10:50] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\PlayerActionPacket object)
[18:10:50] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(99): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[18:10:50] [Server thread/DEBUG]: #8 src/pocketmine/Player(3044): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[18:10:50] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[18:10:50] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 115.164.51.17 18551, raklib\protocol\EncapsulatedPacket object, integer 0)
[18:10:50] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(102): raklib\server\ServerHandler->handlePacket()
[18:10:50] [Server thread/DEBUG]: #12 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
[18:10:50] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(92): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
[18:10:50] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[18:10:50] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
[18:10:50] [Server thread/DEBUG]: #16 src/pocketmine/Server(2278): pocketmine\snooze\SleeperHandler->sleepUntil(double 1545473450.103)
[18:10:50] [Server thread/DEBUG]: #17 src/pocketmine/Server(2139): pocketmine\Server->tickProcessor()
[18:10:50] [Server thread/DEBUG]: #18 src/pocketmine/Server(1715): pocketmine\Server->start()
[18:10:50] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /root/sexd02/, string /root/sexd02/plugins/)
[18:10:50] [Server thread/DEBUG]: #20 /root/sexd02/PocketMine-MP.phar(1): require(string phar:///root/sexd02/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[18:10:50] [Server thread/INFO]: >>> Lv.1 新手駕到 YIVKnufeng 離開了遊戲
[18:10:50] [Server thread/INFO]: YIVKnufeng[/115.164.51.17:18551] logged out due to Internal server error
@dktapps
Copy link
Member

dktapps commented Dec 22, 2018

Please stop posting giant unformatted log blobs into issues. It's incredibly annoying.

@dktapps dktapps added Category: Core Related to internal functionality Status: Unconfirmed Bug has not yet been reproduced by a maintainer labels Dec 22, 2018
@dktapps
Copy link
Member

dktapps commented Dec 22, 2018

This appears that the maximum health was altered by a plugin, but the default value was not adjusted to compensate.

@Danding1314
Copy link
Author

So how to solve qwq please tell me

@dktapps dktapps changed the title Death Attribute defaults are not adjusted when min/max is changed Dec 22, 2018
@dktapps dktapps added Resolution: Fixed and removed Status: Unconfirmed Bug has not yet been reproduced by a maintainer labels Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core Related to internal functionality Resolution: Fixed
Projects
None yet
Development

No branches or pull requests

2 participants