mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Item enforcement optional for packet sending
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user