mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
item drop multiplication fix
This commit is contained in:
parent
a7d36a50bb
commit
3c61d57f6d
3 changed files with 31 additions and 13 deletions
|
@ -59,6 +59,8 @@ public:
|
|||
virtual std::string getText() { return ""; }
|
||||
// Creates an object from the item, to be placed in the world.
|
||||
virtual ServerActiveObject* createSAO(ServerEnvironment *env, u16 id, v3f pos);
|
||||
// Gets amount of items that dropping one SAO will decrement
|
||||
virtual u16 getDropCount(){ return getCount(); }
|
||||
|
||||
/*
|
||||
Quantity methods
|
||||
|
@ -279,6 +281,7 @@ public:
|
|||
}
|
||||
|
||||
ServerActiveObject* createSAO(ServerEnvironment *env, u16 id, v3f pos);
|
||||
u16 getDropCount();
|
||||
|
||||
virtual bool addableTo(InventoryItem *other)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue