Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Fix signature (#4433)
Browse files Browse the repository at this point in the history
* Fix signature

* added wildcards

* Made .Cbe put the item into your hand just not the nbt
  • Loading branch information
Intoprelised authored Aug 19, 2021
1 parent f1dd8f2 commit 4307e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Horion/Command/Commands/CommandBlockExploitCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bool CommandBlockExploitCommand::execute(std::vector<std::string>* args) {
std::string tag = "{Occupants:[{ActorIdentifier:""\"minecraft:command_block_minecart<>""\",SaveData:{Command:\"" + cmd + "\",Ticking:1b,TicksLeftToStay:1}}]}";
yot->setUserData(std::move(Mojangson::parseTag(tag)));
g_Data.getLocalPlayer()->getTransactionManager()->addInventoryAction(C_InventoryAction(0, yot, nullptr, 507, 99999));
g_Data.getLocalPlayer()->getTransactionManager()->addInventoryAction(C_InventoryAction(slot, nullptr, yot));
//g_Data.getLocalPlayer()->getTransactionManager()->addInventoryAction(C_InventoryAction(slot, nullptr, yot));
g_Data.getLocalPlayer()->getSupplies()->inventory->addItemToFirstEmptySlot(yot);
clientMessageF("[%sHorion%s] %sPlace the beehive to spawn a command block minecart with a command already inside!", GOLD, WHITE, GREEN);
return true;
Expand Down

0 comments on commit 4307e66

Please sign in to comment.