DaPigGuy / PiggyCrates

A crate plugin for PocketMine-MP supporting unlimited crate types
https://piggydocs.aericio.net/PiggyCrates.html
Apache License 2.0
31 stars 40 forks source link

Drops aren't given to the player when their inventory is full #11

Closed SalmonDE closed 6 years ago

SalmonDE commented 6 years ago

When $player->getInventory()->canAddItem($dropItem) returns false PiggyCrates still tries to add the item to the players inventory. Of course this fails but the plugin still removes the crate key from the player.

This behaviour should be prevented.