mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Item enforcement optional for packet sending
This commit is contained in:
parent
f7f05d4175
commit
e65731e3ec
@ -171,7 +171,6 @@ class BlockAPI{
|
||||
"block" => $block->getID(),
|
||||
"meta" => $block->getMetadata()
|
||||
));
|
||||
$player->sendInventory();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user