diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-08 16:16:33 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-08 16:16:33 +0100 |
commit | efa670dacb887a8a3120346835e5b5ad3b95a9c6 (patch) | |
tree | 018e24076216065272c968b8d753fb3b08165379 /src/ClientHandle.cpp | |
parent | Merge pull request #2992 from LogicParrot/posix (diff) | |
parent | Prevent player from falling when block breaking is denied (diff) | |
download | cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar.gz cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar.bz2 cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar.lz cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar.xz cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.tar.zst cuberite-efa670dacb887a8a3120346835e5b5ad3b95a9c6.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 792ca49b5..df85d9b67 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1033,6 +1033,7 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, eB { // A plugin doesn't agree with the action, replace the block on the client and quit: m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); + SendPlayerPosition(); // Prevents the player from falling through the block that was temporarily broken client side. return; } @@ -1229,6 +1230,7 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo { // A plugin doesn't agree with the breaking. Bail out. Send the block back to the client, so that it knows: m_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, m_Player); + SendPlayerPosition(); // Prevents the player from falling through the block that was temporarily broken client side. return; } |