mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed first slot on Double chests
This commit is contained in:
parent
f6bbedbe91
commit
82c655c09a
@ -1735,9 +1735,10 @@ class Player{
|
||||
if(!isset($this->windows[$data["windowid"]])){
|
||||
break;
|
||||
}
|
||||
|
||||
if(is_array($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];
|
||||
$slotn = $data["slot"];
|
||||
$offset = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user