Merge pull request #2030 from beeduck/master
Issue #1868 and Issue #1984
This commit is contained in:
commit
c0d7b4d569
@ -2,6 +2,7 @@ Many people have contributed to MCServer, and this list attempts to broadcast at
|
||||
|
||||
BasedDoge (Donated AlchemistVillage prefabs)
|
||||
bearbin (Alexander Harkness)
|
||||
beeduck
|
||||
derouinw
|
||||
Diusrex
|
||||
Duralex
|
||||
|
@ -50,10 +50,24 @@ void cBlockDoorHandler::OnUse(cChunkInterface & a_ChunkInterface, cWorldInterfac
|
||||
UNUSED(a_CursorY);
|
||||
UNUSED(a_CursorZ);
|
||||
|
||||
if (a_ChunkInterface.GetBlock(a_BlockX, a_BlockY, a_BlockZ) == E_BLOCK_WOODEN_DOOR)
|
||||
switch (a_ChunkInterface.GetBlock(a_BlockX, a_BlockY, a_BlockZ))
|
||||
{
|
||||
default:
|
||||
{
|
||||
ASSERT(!"Unhandled door block type");
|
||||
}
|
||||
case E_BLOCK_ACACIA_DOOR:
|
||||
case E_BLOCK_BIRCH_DOOR:
|
||||
case E_BLOCK_DARK_OAK_DOOR:
|
||||
case E_BLOCK_JUNGLE_DOOR:
|
||||
case E_BLOCK_SPRUCE_DOOR:
|
||||
case E_BLOCK_IRON_DOOR:
|
||||
case E_BLOCK_WOODEN_DOOR:
|
||||
{
|
||||
ChangeDoor(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ);
|
||||
a_Player->GetWorld()->BroadcastSoundParticleEffect(1003, a_BlockX, a_BlockY, a_BlockZ, 0, a_Player->GetClientHandle());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -362,6 +362,7 @@ cWorld::~cWorld()
|
||||
void cWorld::CastThunderbolt (int a_BlockX, int a_BlockY, int a_BlockZ)
|
||||
{
|
||||
BroadcastThunderbolt(a_BlockX, a_BlockY, a_BlockZ);
|
||||
BroadcastSoundEffect("ambient.weather.thunder", a_BlockX, a_BlockY, a_BlockZ, 50, 1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user