Fixed WindowOwner implementation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1508 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
c640e9346c
commit
a6c6818930
@ -111,9 +111,9 @@ public:
|
||||
|
||||
virtual void GetBlockPos(int & a_BlockX, int & a_BlockY, int & a_BlockZ) override
|
||||
{
|
||||
a_BlockX = (int)(m_Entity->GetPosX());
|
||||
a_BlockY = (int)(m_Entity->GetPosY());
|
||||
a_BlockZ = (int)(m_Entity->GetPosZ());
|
||||
a_BlockX = (int)floor(m_Entity->GetPosX() + 0.5);
|
||||
a_BlockY = (int)floor(m_Entity->GetPosY() + 0.5);
|
||||
a_BlockZ = (int)floor(m_Entity->GetPosZ() + 0.5);
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user