Browse Source

request current selected item bar slot when joining a server

Kolja Strohm 2 năm trước cách đây
mục cha
commit
846369f311
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;
 }