Attempt two
This commit is contained in:
parent
2b0541ab39
commit
a322bb275f
@ -127,7 +127,7 @@ void cPiston::ExtendPiston( int pistx, int pisty, int pistz )
|
|||||||
Sleep(100);
|
Sleep(100);
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
usleep(0.1);
|
sleep(0.1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_World->SetBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, isSticky + pistonMeta & 7);
|
m_World->SetBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, isSticky + pistonMeta & 7);
|
||||||
@ -179,7 +179,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
|
|||||||
Sleep(100);
|
Sleep(100);
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
usleep(0.1);
|
sleep(0.1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_World->SetBlock(pistx, pisty, pistz, tempblock, tempmeta);
|
m_World->SetBlock(pistx, pisty, pistz, tempblock, tempmeta);
|
||||||
@ -192,7 +192,7 @@ void cPiston::RetractPiston( int pistx, int pisty, int pistz )
|
|||||||
Sleep(100);
|
Sleep(100);
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
usleep(0.1);
|
sleep(0.1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_World->SetBlock(pistx, pisty, pistz, E_BLOCK_AIR, 0);
|
m_World->SetBlock(pistx, pisty, pistz, E_BLOCK_AIR, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user