11-06-2011, 08:12 AM
Notch's thoughts: *I'm running out of block ids!* *Idea! Let's use negative ids!* :V
Also, in cPlayer.cpp (and also somewhere in monster file) at line 265 you have
And there are some rounding issues with negative coords (you are set on fire one block off lava block)
Something like this shall do:
Also, in cPlayer.cpp (and also somewhere in monster file) at line 265 you have
Code:
char block = GetWorld()->GetBlock( (int)m_Pos->x, (int)m_Pos->y, (int)m_Pos->z );
Something like this shall do:
Code:
#define float2int(x) ((x)<0 ? ((int)(x))-1 : (int)(x))
char block = GetWorld()->GetBlock( float2int(m_Pos->x), float2int(m_Pos->y), float2int(m_Pos->z) );