diff options
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h index 59ff89ed8..354111045 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -46,8 +46,10 @@ public: virtual void serialize(std::ostream &os) = 0; // Shall make an exact clone of the item virtual InventoryItem* clone() = 0; +#ifndef SERVER // Shall return an image to show in the GUI (or NULL) virtual video::ITexture * getImage() { return NULL; } +#endif // Shall return a text to show in the GUI virtual std::string getText() { return ""; } @@ -175,7 +177,9 @@ public: return new MapBlockObjectItem(m_inventorystring); } +#ifndef SERVER video::ITexture * getImage(); +#endif std::string getText(); /* |