mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Introduce Player::getLightPosition
This is currently only used in the lighting update for remote players in client.
This commit is contained in:
@@ -62,6 +62,11 @@ public:
|
||||
return m_position;
|
||||
}
|
||||
|
||||
v3s16 getLightPosition() const
|
||||
{
|
||||
return floatToInt(m_position + v3f(0,BS+BS/2,0), BS);
|
||||
}
|
||||
|
||||
virtual void setPosition(const v3f &position)
|
||||
{
|
||||
m_position = position;
|
||||
|
Reference in New Issue
Block a user