mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Item enforcement optional for packet sending
This commit is contained in:
parent
f7f05d4175
commit
e65731e3ec
2 changed files with 1 additions and 2 deletions
|
|
@ -171,7 +171,6 @@ class BlockAPI{
|
||||||
"block" => $block->getID(),
|
"block" => $block->getID(),
|
||||||
"meta" => $block->getMetadata()
|
"meta" => $block->getMetadata()
|
||||||
));
|
));
|
||||||
$player->sendInventory();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -270,7 +270,7 @@ class Player{
|
||||||
|
|
||||||
public function sendInventorySlot($s){
|
public function sendInventorySlot($s){
|
||||||
$s = (int) $s;
|
$s = (int) $s;
|
||||||
if(!isset($this->inventory[$s])){
|
if(!isset($this->inventory[$s]) or $this->server->api->getProperty("disallow-crafting") === false){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue