From cb640ffea4a51a10db2e379ada8dc0487378ba09 Mon Sep 17 00:00:00 2001 From: bibo38 Date: Wed, 12 Oct 2016 14:38:45 +0200 Subject: Spectators added (#2852) --- src/BlockInfo.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/BlockInfo.cpp') diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp index 2afb5d6f2..34ccc2378 100644 --- a/src/BlockInfo.cpp +++ b/src/BlockInfo.cpp @@ -492,6 +492,15 @@ void cBlockInfo::Initialize(cBlockInfoArray & a_Info) a_Info[E_BLOCK_WOODEN_PRESSURE_PLATE].m_IsSolid = false; + // Blocks, which a spectator is allowed to interact with + a_Info[E_BLOCK_BEACON ].m_UseableBySpectator = true; + a_Info[E_BLOCK_BREWING_STAND ].m_UseableBySpectator = true; + a_Info[E_BLOCK_CHEST ].m_UseableBySpectator = true; + a_Info[E_BLOCK_DISPENSER ].m_UseableBySpectator = true; + a_Info[E_BLOCK_DROPPER ].m_UseableBySpectator = true; + a_Info[E_BLOCK_HOPPER ].m_UseableBySpectator = true; + + // Blocks that fully occupy their voxel - used as a guide for torch placeable blocks, amongst other things: a_Info[E_BLOCK_BARRIER ].m_FullyOccupiesVoxel = true; a_Info[E_BLOCK_BEDROCK ].m_FullyOccupiesVoxel = true; -- cgit v1.2.3