Implemented double chest fix, closes #2744, fixes #2493

This commit is contained in:
Shoghi Cervantes
2015-03-17 17:49:10 +01:00
parent ffcdf49912
commit 37bc1273ee
3 changed files with 18 additions and 9 deletions

View File

@ -115,7 +115,9 @@ abstract class BaseInventory implements Inventory{
$this->clear($i);
}
}else{
$this->setItem($i, $items[$i]);
if (!$this->setItem($i, $items[$i])){
$this->clear($i);
}
}
}
}