mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Add crafting grid item data
This commit is contained in:
parent
c0d30ebeb1
commit
a47628ed85
|
|
@ -516,6 +516,12 @@ bool MultiPlayerGameMode::handleCraftItem(int recipe, shared_ptr<Player> player)
|
|||
|
||||
connection->send(std::make_shared<CraftItemPacket>(recipe, changeUid));
|
||||
|
||||
int gridData[9];
|
||||
for(int i = 0; i < 9; i++) gridData[i] = -1;
|
||||
bool is2x2 = false;
|
||||
|
||||
connection->send(std::make_shared<CraftItemGridPacket>(recipe, changeUid, is2x2, gridData));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue