Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

error #445

Open
viyen217 opened this issue Feb 27, 2021 · 0 comments
Open

error #445

viyen217 opened this issue Feb 27, 2021 · 0 comments
Assignees
Labels
Category: Bug This is a bug in the code!

Comments

@viyen217
Copy link

PocketMine-MP Crash Dump Sat Feb 27 15:24:50 UTC 2021

Error: Argument 1 passed to pocketmine\level\Level::getBlockIdAt() must be of the type int, float given, called in phar:///storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/PureEntities.php on line 329
File: pmsrc/src/pocketmine/level/Level
Line: 2147
Type: TypeError

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: PureEntitiesX v0.6.9

Code:
[2138] public function getChunkTiles(int $X, int $Z) : array{
[2139] return ($chunk = $this->getChunk($X, $Z)) !== null ? $chunk->getTiles() : [];
[2140] }
[2141]
[2142] /**
[2143] * Gets the raw block id.
[2144] *
[2145] * @return int 0-255
[2146] /
[2147] public function getBlockIdAt(int $x, int $y, int $z) : int{
[2148] return $this->getChunk($x >> 4, $z >> 4, true)->getBlockId($x & 0x0f, $y, $z & 0x0f);
[2149] }
[2150]
[2151] /
*
[2152] * Sets the raw block id.
[2153] *
[2154] * @param int $id 0-255
[2155] *
[2156] * @return void
[2157] */

Backtrace:
#0 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/PureEntities(329): pocketmine\level\Level->getBlockIdAt(double 201.2589, double 68.689, double 371.9398)
#1 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/traits/Tameable(194): revivalpmmp\pureentities\PureEntities::getSuitableHeightPosition(double 201.2589, double 67.689, double 371.9398, object pocketmine\level\Level)
#2 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Wolf(354): revivalpmmp\pureentities\entity\monster\walking\Wolf->getPositionNearOwner(object pocketmine\Player, object revivalpmmp\pureentities\entity\monster\walking\Wolf)
#3 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Wolf(132): revivalpmmp\pureentities\entity\monster\walking\Wolf->checkFollowOwner()
#4 plugins/PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(187): revivalpmmp\pureentities\entity\monster\walking\Wolf->entityBaseTick(integer 1)
#5 pmsrc/src/pocketmine/level/Level(854): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 26822)
#6 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 26822)
#7 pmsrc/src/pocketmine/Server(2266): pocketmine\level\Level->doTick(integer 26822)
#8 pmsrc/src/pocketmine/Server(2397): pocketmine\Server->checkTickUpdates(integer 26822, double 1614439490.0511)
#9 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[72] /storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/, string[80] /storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/plugins/)
#13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#14 pmsrc(11): require(string[127] phar:///storage/emulated/0/Android/data/io.scer.pocketmine/files/PocketMine-MP/P)

PocketMine-MP version: 3.17.5 [Protocol 422]
Git commit: 3a0c8dd5942c5e479a1a46421a6a6bcf31a2da84
uname -a: Linux localhost 3.18.31-perf-g040a88f #1 SMP PREEMPT Thu Nov 7 00:28:25 WIB 2019 aarch64
PHP Version: 7.3.21
Zend version: 3.3.21
OS : Linux, android

@viyen217 viyen217 added the Category: Bug This is a bug in the code! label Feb 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Bug This is a bug in the code!
Projects
None yet
Development

No branches or pull requests

2 participants