Item enforcement optional for packet sending

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-17 19:38:29 +02:00
parent f7f05d4175
commit e65731e3ec
2 changed files with 1 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ class Player{
public function sendInventorySlot($s){
$s = (int) $s;
if(!isset($this->inventory[$s])){
if(!isset($this->inventory[$s]) or $this->server->api->getProperty("disallow-crafting") === false){
return false;
}