1
0

Fixed invisible chests (#3722)

Fixes #3479, #3403, #3696
This commit is contained in:
Pablo Beltrán
2017-05-21 11:48:33 +02:00
committed by Mattes D
parent 2359611c57
commit 758622336e
3 changed files with 15 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
#include "../Item.h"
#include "../Entities/Player.h"
#include "../UI/ChestWindow.h"
#include "../ClientHandle.h"
@@ -35,10 +36,8 @@ cChestEntity::~cChestEntity()
void cChestEntity::SendTo(cClientHandle & a_Client)
{
// The chest entity doesn't need anything sent to the client when it's created / gets in the viewdistance
// All the actual handling is in the cWindow UI code that gets called when the chest is rclked
UNUSED(a_Client);
// Send a dummy "number of players with chest open" packet to make the chest visible:
a_Client.SendBlockAction(m_PosX, m_PosY, m_PosZ, 1, 0, m_BlockType);
}