Compare commits

...

2 Commits
3.0.0 ... 3.0.1

2 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace pocketmine {
use pocketmine\wizard\SetupWizard;
const NAME = "PocketMine-MP";
const BASE_VERSION = "3.0.0";
const BASE_VERSION = "3.0.1";
const IS_DEVELOPMENT_BUILD = false;
const BUILD_NUMBER = 0;

View File

@ -173,6 +173,9 @@ class InventoryTransaction{
$inventory = $inventories[$hash];
$slot = $slots[$hash];
if(!$inventory->slotExists($slot)){ //this can get hit for crafting tables because the validation happens after this compaction
throw new TransactionValidationException("Slot $slot does not exist in inventory " . get_class($inventory));
}
$sourceItem = $inventory->getItem($slot);
$targetItem = $this->findResultItem($sourceItem, $list);