mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed Chest Slots not getting sent and shown
This commit is contained in:
@ -98,7 +98,7 @@ class BurningFurnaceBlock extends SolidBlock{
|
|||||||
"slots" => 3,
|
"slots" => 3,
|
||||||
"title" => "Furnace",
|
"title" => "Furnace",
|
||||||
));
|
));
|
||||||
for($s = 0; $s < 3; ++$s){
|
for($s = 0; $s < FURNACE_SLOTS; ++$s){
|
||||||
$slot = $furnace->getSlot($s);
|
$slot = $furnace->getSlot($s);
|
||||||
if($slot->getID() > 0 and $slot->count > 0){
|
if($slot->getID() > 0 and $slot->count > 0){
|
||||||
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
||||||
|
@ -110,7 +110,7 @@ class ChestBlock extends SolidBlock{
|
|||||||
"slots" => 27,
|
"slots" => 27,
|
||||||
"title" => "Chest",
|
"title" => "Chest",
|
||||||
));
|
));
|
||||||
for($s = 0; $s < 3; ++$s){
|
for($s = 0; $s < CHEST_SLOTS; ++$s){
|
||||||
$slot = $chest->getSlot($s);
|
$slot = $chest->getSlot($s);
|
||||||
if($slot->getID() > 0 and $slot->count > 0){
|
if($slot->getID() > 0 and $slot->count > 0){
|
||||||
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
$player->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
||||||
|
Reference in New Issue
Block a user