Fixed first slot on Double chests

This commit is contained in:
Shoghi Cervantes 2013-08-30 17:37:16 +02:00
parent f6bbedbe91
commit 82c655c09a

View File

@ -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;