mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Properly and efficiently use split utility headers
This commit is contained in:
parent
1bc37d576c
commit
d0ea6f9920
73 changed files with 130 additions and 159 deletions
|
@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "serverobject.h"
|
||||
#include <fstream>
|
||||
#include "inventory.h"
|
||||
#include "constants.h" // BS
|
||||
|
||||
ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos):
|
||||
ActiveObject(0),
|
||||
|
@ -66,6 +67,11 @@ void ServerActiveObject::registerType(u16 type, Factory f)
|
|||
m_types.insert(type, f);
|
||||
}
|
||||
|
||||
float ServerActiveObject::getMinimumSavedMovement()
|
||||
{
|
||||
return 2.0*BS;
|
||||
}
|
||||
|
||||
ItemStack ServerActiveObject::getWieldedItem() const
|
||||
{
|
||||
const Inventory *inv = getInventory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue