mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
fixed inv desync
This commit is contained in:
parent
75844b5a62
commit
cfabae7583
1 changed files with 3 additions and 1 deletions
|
|
@ -594,6 +594,8 @@ class Player{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendInventorySlot($s){
|
public function sendInventorySlot($s){
|
||||||
|
$this->sendInventory();
|
||||||
|
return;
|
||||||
$s = (int) $s;
|
$s = (int) $s;
|
||||||
if(!isset($this->inventory[$s])){
|
if(!isset($this->inventory[$s])){
|
||||||
$pk = new ContainerSetSlotPacket;
|
$pk = new ContainerSetSlotPacket;
|
||||||
|
|
@ -1313,7 +1315,7 @@ class Player{
|
||||||
$this->chunkCount = [];
|
$this->chunkCount = [];
|
||||||
$this->cratingItems = [];
|
$this->cratingItems = [];
|
||||||
$this->received = [];
|
$this->received = [];
|
||||||
$this->entity->close();
|
//$this->entity->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue