diff options
Diffstat (limited to 'src/net/inventoryhandler.cpp')
-rw-r--r-- | src/net/inventoryhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/inventoryhandler.cpp b/src/net/inventoryhandler.cpp index ce01c3dc..354dd685 100644 --- a/src/net/inventoryhandler.cpp +++ b/src/net/inventoryhandler.cpp @@ -58,6 +58,12 @@ void InventoryHandler::handleMessage(MessageIn &msg) while (msg.getUnreadLength()) { int slot = msg.readByte(); + if (slot == 255) + { + player_node->setMoney(msg.readLong()); + continue; + } + int id = msg.readShort(); if (slot < EQUIPMENT_SIZE) { |