Skip to content

Commit

Permalink
Fix "Hanging roots" item ID
Browse files Browse the repository at this point in the history
From cauldron to hanging roots (blockID/itemID problem)
  • Loading branch information
fluffyloafie committed Dec 9, 2023
1 parent 9d5569d commit 908cc7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cubic-server/items/usable-items/Hoe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Items::Hoe::onUse(std::shared_ptr<Dimension> dim, Position &pos, UsabilityT
return;
} else if (Topblock == Blocks::Air::toProtocol() && block == Blocks::RootedDirt::toProtocol()) {
dim->updateBlock(blockPos, Blocks::Dirt::toProtocol());
dim->makeEntity<Item>(protocol::Slot {true, 937, 1})
dim->makeEntity<Item>(protocol::Slot {true, 214, 1})
->dropItem({static_cast<double>(pos.x) + 0.5, static_cast<double>(pos.y), static_cast<double>(pos.z) + 0.5}); // hanging roots
canUpdateDamage = true;
return;
Expand Down

0 comments on commit 908cc7e

Please sign in to comment.