Muirfield / bad-plugins

PocketMine Plugins that are not good enough to be hosted in plugins.pocketmine.net
GNU General Public License v2.0
23 stars 17 forks source link

Crash on Pig (itemInHand) #17

Open inxomnyaa opened 8 years ago

inxomnyaa commented 8 years ago

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/Server3 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 erver32bit.php:2178 7976.2291 95971552 6. pocketmine\Server->tick() phar://C:/Users/Administrator/Desktop/Server/MinecraftPE/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/Server32 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/Server32bit.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 ver32bit.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 commented 8 years ago

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 notifications@github.com:

Only on pigs?.....

— Reply to this email directly or view it on GitHub.

inxomnyaa commented 8 years ago

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 notifications@github.com:

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 commented 8 years ago

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

inxomnyaa commented 8 years ago

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