Browse Source

request current selected item bar slot when joining a server

Kolja Strohm 2 years ago
parent
commit
846369f311
1 changed files with 1 additions and 0 deletions
  1. 1 0
      FactoryCraft/ItemBar.cpp

+ 1 - 0
FactoryCraft/ItemBar.cpp

@@ -61,6 +61,7 @@ ItemBarView::ItemBarView(Framework::Text id,
         slotNameFilter.getLength());
     World::INSTANCE->zClient()->inventoryAPIRequest(
         targetEntity, msg, id.getLength() + slotNameFilter.getLength() + 3);
+    World::INSTANCE->zClient()->sendPlayerAction("\x8", 1);
     delete[] msg;
 }