summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-08 00:09:03 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-08 00:09:03 +0100
commit0c3eda9b17db6bc58dd63b1c3cedf5c650639584 (patch)
tree1248c24f2de58698199d90040a58edcea02a54ac /source/cChunk.cpp
parentUpdated redstone and pistons some mode. If you break an extended piston the piston extension will now also break. When a redstone device is broken by something other than a person the redstone circuit should now update. (diff)
downloadcuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar.gz
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar.bz2
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar.lz
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar.xz
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.tar.zst
cuberite-0c3eda9b17db6bc58dd63b1c3cedf5c650639584.zip
Diffstat (limited to '')
-rw-r--r--source/cChunk.cpp4
1 files 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 );