Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Crash on Pig (itemInHand) #17

Open
inxomnyaa opened this issue Oct 15, 2015 · 10 comments
Open

Crash on Pig (itemInHand) #17

inxomnyaa opened this issue Oct 15, 2015 · 10 comments

Comments

@inxomnyaa
Copy link

Fatal error: Call to a member function getItemInHand() on null in C:\Users\Administrator\Desktop\Server\MinecraftPE\PocketMine-MP\plugins\Mobsters\src\aliuly\mobsters\i diots\Pig.php on line 112

Call Stack:
0.0201 408808 1. {main}() C:\Users\Administrator\Desktop\Server\MinecraftPE\PocketMine-MP\PocketMine-MP.phar:0
0.0223 403904 2. require('phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php') C:\Users\A dministrator\Desktop\Server\MinecraftPE\PocketMine-MP\PocketMine-MP.phar:1
0.1506 543976 3. pocketmine\Server->__construct() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Poc ketMine.php:464
15.7152 20741432 4. pocketmine\Server->start() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Server__3 2bit.php:1778
15.7321 20757520 5. pocketmine\Server->tickProcessor() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/S erver__32bit.php:2178
7976.2291 95971552 6. pocketmine\Server->tick() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Server__32 bit.php:2300
7976.2438 95980624 7. pocketmine\Server->checkTickUpdates() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmin e/Server__32bit.php:2497
7976.2529 95980656 8. pocketmine\level\Level->doTick() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Ser ver__32bit.php:2339
7976.2568 95980888 9. aliuly\mobsters\idiots\Pig->onUpdate() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmi ne/level/Level__32bit.php:695
7976.2574 95982336 10. aliuly\mobsters\idiots\Pig->findTarget() C:\Users\Administrator\Desktop\Server\MinecraftPE\PocketMine-MP\plugins\Mobsters\src\aliuly\mobsters \idiots\Pig.php:156

@inxomnyaa
Copy link
Author

How would you hold a Pig in your hand?
There aren't even pig spawn eggs in the inventory

Am 16.12.2015 um 13:23 schrieb astersx [email protected]:

Only on pigs?.....


Reply to this email directly or view it on GitHub.

@inxomnyaa
Copy link
Author

Again. There is no AI and there are just 3 spawn eggs: Squids, Zombie and Villager.
And they do not move.
I bet you use a plugin.

Am 16.12.2015 um 15:20 schrieb astersx [email protected]:

You can disamble gettitemonhand() only if is null, if(getitemonhand() == null){} else{ code that is making pig to run to carrot}

I will do this too :D


Reply to this email directly or view it on GitHub.

@inxomnyaa
Copy link
Author

OH SORRY I THOUGHT THIS WAS ON IMAGICALMINE!
Yea.. But its a bug

@inxomnyaa
Copy link
Author

Level name missing? Oh.. I know whats wrong. But i'll sleep now

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

No branches or pull requests

2 participants
@inxomnyaa and others