From c5fab7e7c8da1bb69c3a9b6506256193564fd13b Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Wed, 28 Dec 2011 21:35:43 +0000 Subject: - little performance improvement on the sand simulator git-svn-id: http://mc-server.googlecode.com/svn/trunk@151 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSandSimulator.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source/cSandSimulator.cpp') diff --git a/source/cSandSimulator.cpp b/source/cSandSimulator.cpp index 77f206b52..65516178b 100644 --- a/source/cSandSimulator.cpp +++ b/source/cSandSimulator.cpp @@ -74,4 +74,11 @@ bool cSandSimulator::IsPassable( char a_BlockID ) || IsBlockWater(a_BlockID) || IsBlockLava(a_BlockID); -} \ No newline at end of file +} + +void cSandSimulator::WakeUp( int a_X, int a_Y, int a_Z ) +{ + //Nothing else needs to be simulated :D (Bugs not included :s) + AddBlock( a_X, a_Y+1, a_Z ); + AddBlock( a_X, a_Y, a_Z ); +} -- cgit v1.2.3