From 17a2c1b3886ed38b3e5e93238029476866b8c220 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 26 Dec 2012 09:12:00 +0000 Subject: Adjusted the protocol framework to support different types of falling block spawning. In brief, with cProtocol, "say what you want done, not how you want me to do it". But still 1.4.6 crashes on falling block spawning. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1104 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FallingBlock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/FallingBlock.h') diff --git a/source/FallingBlock.h b/source/FallingBlock.h index cdf1e1f04..e40b342fe 100644 --- a/source/FallingBlock.h +++ b/source/FallingBlock.h @@ -25,6 +25,9 @@ public: cFallingBlock(const Vector3i & a_BlockPosition, BLOCKTYPE a_BlockType); + BLOCKTYPE GetBlockType(void) const { return m_BlockType; } + + // cEntity overrides: virtual void Initialize(cWorld * a_World) override; virtual void SpawnOn(cClientHandle & a_ClientHandle) override; virtual void Tick(float a_Dt, MTRand & a_TickRandom) override; -- cgit v1.2.3