mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuff
This commit is contained in:
parent
f8c9b70379
commit
64996422c0
24 changed files with 697 additions and 617 deletions
|
@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "content_sao.h"
|
||||
#include "player.h"
|
||||
#include "log.h"
|
||||
#include "mapnode_contentfeatures.h"
|
||||
|
||||
/*
|
||||
InventoryItem
|
||||
|
@ -148,6 +149,13 @@ ServerActiveObject* InventoryItem::createSAO(ServerEnvironment *env, u16 id, v3f
|
|||
MaterialItem
|
||||
*/
|
||||
|
||||
#ifndef SERVER
|
||||
video::ITexture * MaterialItem::getImage() const
|
||||
{
|
||||
return content_features(m_content).inventory_texture;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool MaterialItem::isCookable() const
|
||||
{
|
||||
return item_material_is_cookable(m_content);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue