mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Fixed first slot on Double chests
This commit is contained in:
parent
f6bbedbe91
commit
82c655c09a
1 changed files with 2 additions and 1 deletions
|
|
@ -1735,9 +1735,10 @@ class Player{
|
||||||
if(!isset($this->windows[$data["windowid"]])){
|
if(!isset($this->windows[$data["windowid"]])){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_array($this->windows[$data["windowid"]])){
|
if(is_array($this->windows[$data["windowid"]])){
|
||||||
$tiles = $this->windows[$data["windowid"]];
|
$tiles = $this->windows[$data["windowid"]];
|
||||||
if($data["slot"] > 0 and $data["slot"] < CHEST_SLOTS){
|
if($data["slot"] >= 0 and $data["slot"] < CHEST_SLOTS){
|
||||||
$tile = $tiles[0];
|
$tile = $tiles[0];
|
||||||
$slotn = $data["slot"];
|
$slotn = $data["slot"];
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue