mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-19 11:15:18 +02:00
Sanitize player position and speed server-side (#12396)
This commit is contained in:
@@ -134,13 +134,14 @@ public:
|
||||
std::vector<CollisionInfo> *collision_info)
|
||||
{}
|
||||
|
||||
const v3f &getSpeed() const
|
||||
v3f getSpeed() const
|
||||
{
|
||||
return m_speed;
|
||||
}
|
||||
|
||||
void setSpeed(const v3f &speed)
|
||||
void setSpeed(v3f speed)
|
||||
{
|
||||
clampToF1000(speed);
|
||||
m_speed = speed;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user