From 007e75de9defc3d96ac61400fa983da812b4b15e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 12 Jun 2013 08:22:34 +0000 Subject: Implemented the Hopper block handler Hoppers can be placed properly, but won't work yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1583 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BlockEntities/DropSpenserEntity.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source/BlockEntities') diff --git a/source/BlockEntities/DropSpenserEntity.cpp b/source/BlockEntities/DropSpenserEntity.cpp index 900ecb172..a9860d812 100644 --- a/source/BlockEntities/DropSpenserEntity.cpp +++ b/source/BlockEntities/DropSpenserEntity.cpp @@ -43,12 +43,12 @@ void cDropSpenserEntity::AddDropSpenserDir(int & a_BlockX, int & a_BlockY, int & { switch (a_Direction) { - case E_META_DISPENSER_FACING_YM: a_BlockY--; return; - case E_META_DISPENSER_FACING_YP: a_BlockY++; return; - case E_META_DISPENSER_FACING_ZM: a_BlockZ--; return; - case E_META_DISPENSER_FACING_ZP: a_BlockZ++; return; - case E_META_DISPENSER_FACING_XM: a_BlockX--; return; - case E_META_DISPENSER_FACING_XP: a_BlockX++; return; + case E_META_DROPSPENSER_FACING_YM: a_BlockY--; return; + case E_META_DROPSPENSER_FACING_YP: a_BlockY++; return; + case E_META_DROPSPENSER_FACING_ZM: a_BlockZ--; return; + case E_META_DROPSPENSER_FACING_ZP: a_BlockZ++; return; + case E_META_DROPSPENSER_FACING_XM: a_BlockX--; return; + case E_META_DROPSPENSER_FACING_XP: a_BlockX++; return; } LOGWARNING("%s: Unhandled direction: %d", __FUNCTION__, a_Direction); return; @@ -89,10 +89,10 @@ void cDropSpenserEntity::DropSpense(cChunk & a_Chunk) int SmokeDir = 0; switch (Meta) { - case E_META_DISPENSER_FACING_XM: SmokeDir = 3; break; - case E_META_DISPENSER_FACING_XP: SmokeDir = 5; break; - case E_META_DISPENSER_FACING_ZM: SmokeDir = 1; break; - case E_META_DISPENSER_FACING_ZP: SmokeDir = 7; break; + case E_META_DROPSPENSER_FACING_XM: SmokeDir = 3; break; + case E_META_DROPSPENSER_FACING_XP: SmokeDir = 5; break; + case E_META_DROPSPENSER_FACING_ZM: SmokeDir = 1; break; + case E_META_DROPSPENSER_FACING_ZP: SmokeDir = 7; break; } m_World->BroadcastSoundParticleEffect(2000, m_PosX * 8, m_PosY * 8, m_PosZ * 8, SmokeDir); m_World->BroadcastSoundEffect("random.click", m_PosX * 8, m_PosY * 8, m_PosZ * 8, 1.0f, 1.0f); -- cgit v1.2.3