From 9cb88728511c314695731d92cb4ab16c8e3b051e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 23 Apr 2012 21:20:32 +0000 Subject: Anvil storage writing (Basic storage is working, NO entities except for chests are working! Don't use for real servers) git-svn-id: http://mc-server.googlecode.com/svn/trunk@475 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cBlockEntity.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source/cBlockEntity.h') diff --git a/source/cBlockEntity.h b/source/cBlockEntity.h index 3f0190c77..8a9e51f56 100644 --- a/source/cBlockEntity.h +++ b/source/cBlockEntity.h @@ -34,10 +34,10 @@ class cPacket; class cBlockEntity { protected: - cBlockEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cWorld * a_World) - : m_PosX( a_X ) - , m_PosY( a_Y ) - , m_PosZ( a_Z ) + cBlockEntity(ENUM_BLOCK_ID a_BlockType, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World) + : m_PosX( a_BlockX ) + , m_PosY( a_BlockY ) + , m_PosZ( a_BlockZ ) , m_BlockType( a_BlockType ) , m_World( a_World ) {} @@ -45,6 +45,7 @@ public: virtual ~cBlockEntity() {}; virtual void Destroy() {}; + // Position, in absolute block coordinates: int GetPosX() { return m_PosX; } int GetPosY() { return m_PosY; } int GetPosZ() { return m_PosZ; } @@ -78,7 +79,7 @@ public: virtual cPacket * GetPacket(void) {return NULL; } protected: - int m_PosX; // Position in block coordinates + int m_PosX; // Position in absolute block coordinates int m_PosY; int m_PosZ; -- cgit v1.2.3