summaryrefslogtreecommitdiffstats
path: root/src/GameState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GameState.cpp')
-rw-r--r--src/GameState.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp
index 3166f1a..b963ef0 100644
--- a/src/GameState.cpp
+++ b/src/GameState.cpp
@@ -582,3 +582,11 @@ void GameState::CancelDigging() {
auto packet = std::static_pointer_cast<Packet>(packetCancel);
PUSH_EVENT("SendPacket", packet);
}
+
+void GameState::PlaceBlock() {
+ auto packetPlace = std::make_shared<PacketPlayerBlockPlacement>(
+ selectedBlock, 1, 0, 0.0, 0.0, 0.0);
+
+ auto packet = std::static_pointer_cast<Packet>(packetPlace);
+ PUSH_EVENT("SendPacket", packet);
+} \ No newline at end of file