mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Fixed packet index when opening a furnace
This commit is contained in:
parent
8c6bf01815
commit
4d4786dc0d
1 changed files with 3 additions and 3 deletions
|
|
@ -192,9 +192,6 @@ class Tile extends Position{
|
||||||
"windowid" => $id,
|
"windowid" => $id,
|
||||||
"count" => count($slots),
|
"count" => count($slots),
|
||||||
"slots" => $slots,
|
"slots" => $slots,
|
||||||
"x" => $this->x,
|
|
||||||
"y" => $this->y,
|
|
||||||
"z" => $this->z
|
|
||||||
));
|
));
|
||||||
return true;
|
return true;
|
||||||
}elseif($this->class === TILE_FURNACE){
|
}elseif($this->class === TILE_FURNACE){
|
||||||
|
|
@ -205,6 +202,9 @@ class Tile extends Position{
|
||||||
"windowid" => $id,
|
"windowid" => $id,
|
||||||
"type" => WINDOW_FURNACE,
|
"type" => WINDOW_FURNACE,
|
||||||
"slots" => FURNACE_SLOTS,
|
"slots" => FURNACE_SLOTS,
|
||||||
|
"x" => $this->x,
|
||||||
|
"y" => $this->y,
|
||||||
|
"z" => $this->z
|
||||||
));
|
));
|
||||||
$slots = array();
|
$slots = array();
|
||||||
for($s = 0; $s < FURNACE_SLOTS; ++$s){
|
for($s = 0; $s < FURNACE_SLOTS; ++$s){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue