Change to pistons, piston push length is base-1 blocks

This commit is contained in:
Simon Robertshaw 2013-01-23 12:38:53 +00:00
parent a7aa26fa1a
commit da12cc6d46

View File

@ -94,7 +94,7 @@ int Element_PSTN::update(UPDATE_FUNC_ARGS)
{
bool foundEnd = false;
int pistonEndX, pistonEndY;
int pistonCount = 1;
int pistonCount = 0;
int newSpace = 0;
int armCount = 0;
for (nxx = 0, nyy = 0, nxi = directionX, nyi = directionY; pistonCount < maxSize; nyy += nyi, nxx += nxi) {