From 0c3eda9b17db6bc58dd63b1c3cedf5c650639584 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Mon, 7 Nov 2011 23:09:03 +0000 Subject: Fixed bug in cChunk.cpp not calculating RedstoneCircuits at the correct positions. Also, forgot to mention you can now place colored wool. git-svn-id: http://mc-server.googlecode.com/svn/trunk@75 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/cChunk.cpp b/source/cChunk.cpp index ac4f69f93..a9c40bfe0 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -252,7 +252,7 @@ void cChunk::Tick(float a_Dt) SetBlock( X, Y, Z, 0, 0 ); if (isRedstone) { cRedstone Redstone(m_World); - Redstone.ChangeRedstone( X, Y, Z, false ); + Redstone.ChangeRedstone( (X+m_PosX*16), (Y+m_PosY*16), (Z+m_PosZ*16), false ); } cPickup* Pickup = new cPickup( (X+m_PosX*16) * 32 + 16, (Y+m_PosY*128) * 32 + 16, (Z+m_PosZ*16) * 32 + 16, cItem( cBlockToPickup::ToPickup( (ENUM_ITEM_ID)BlockID, E_ITEM_EMPTY) , 1 ) ); Pickup->Initialize( m_World ); @@ -275,7 +275,7 @@ void cChunk::Tick(float a_Dt) SetBlock( X, Y, Z, 0, 0 ); if (isRedstone) { cRedstone Redstone(m_World); - Redstone.ChangeRedstone( X, Y, Z, false ); + Redstone.ChangeRedstone( (X+m_PosX*16), (Y+m_PosY*16), (Z+m_PosZ*16), false ); } cPickup* Pickup = new cPickup( (X+m_PosX*16) * 32 + 16, (Y+m_PosY*128) * 32 + 16, (Z+m_PosZ*16) * 32 + 16, cItem( cBlockToPickup::ToPickup( (ENUM_ITEM_ID)BlockID, E_ITEM_EMPTY) , 1 ) ); Pickup->Initialize( m_World ); -- cgit v1.2.3