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