summaryrefslogtreecommitdiffstats
path: root/src/GlobalState.cpp
diff options
context:
space:
mode:
authorElisey Puzko <puzko.e02@gmail.com>2018-02-22 20:07:08 +0100
committerElisey Puzko <puzko.e02@gmail.com>2018-02-22 20:07:08 +0100
commit228423d91518d0b8bd1c4bf047f3d378567e00f9 (patch)
treee05f4d5ddb11794bb4eb8691e8970d063599e669 /src/GlobalState.cpp
parentNew event: SelectedBlockChanged (diff)
downloadAltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.gz
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.bz2
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.lz
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.xz
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.tar.zst
AltCraft-228423d91518d0b8bd1c4bf047f3d378567e00f9.zip
Diffstat (limited to 'src/GlobalState.cpp')
-rw-r--r--src/GlobalState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GlobalState.cpp b/src/GlobalState.cpp
index 73a34cb..8d75bac 100644
--- a/src/GlobalState.cpp
+++ b/src/GlobalState.cpp
@@ -163,6 +163,10 @@ void PhysExec() {
gs->CancelDigging();
});
+ listener.RegisterHandler("RmbPressed", [](const Event& eventData) {
+ gs->PlaceBlock();
+ });
+
listener.RegisterHandler("SelectedBlockChanged", [](const Event& eventData) {
//TODO:
//gs->CancelDigging();