mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 15:42:24 +01:00
Correct ServerActiveObject's virtual getArmorGroups() to be const.
Due to commit ec3142a , UnitSAO's getArmorGroups() did not match ServerActiveObject's, notably resulting in the lua get_armor_groups() call returning nothing.
This commit is contained in:
parent
3ceef8e6a0
commit
1a97d06b5a
@ -147,7 +147,7 @@ public:
|
|||||||
|
|
||||||
virtual void setArmorGroups(const ItemGroupList &armor_groups)
|
virtual void setArmorGroups(const ItemGroupList &armor_groups)
|
||||||
{}
|
{}
|
||||||
virtual const ItemGroupList &getArmorGroups()
|
virtual const ItemGroupList &getArmorGroups() const
|
||||||
{ static ItemGroupList rv; return rv; }
|
{ static ItemGroupList rv; return rv; }
|
||||||
virtual void setPhysicsOverride(float physics_override_speed, float physics_override_jump, float physics_override_gravity)
|
virtual void setPhysicsOverride(float physics_override_speed, float physics_override_jump, float physics_override_gravity)
|
||||||
{}
|
{}
|
||||||
|
Loading…
Reference in New Issue
Block a user