mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-22 07:53:30 +00:00
i broke all
This commit is contained in:
@@ -880,10 +880,7 @@ void Minecraft::tickInput() {
|
|||||||
handleBuildAction(&bai);
|
handleBuildAction(&bai);
|
||||||
}
|
}
|
||||||
#ifdef __ANDROID__
|
#ifdef __ANDROID__
|
||||||
bool isTryingToDestroyBlock = (options.useMouseForDigging
|
bool isTryingToDestroyBlock = buildHandled && bai.isRemove();
|
||||||
? (Mouse::isButtonDown(MouseAction::ACTION_LEFT) && mouseDiggable)
|
|
||||||
: Keyboard::isKeyDown(options.keyDestroy.key))
|
|
||||||
|| (buildHandled && bai.isRemove());
|
|
||||||
handleMouseDown(MouseAction::ACTION_LEFT, isTryingToDestroyBlock || (buildHandled && bai.isInteract()));
|
handleMouseDown(MouseAction::ACTION_LEFT, isTryingToDestroyBlock || (buildHandled && bai.isInteract()));
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
@@ -930,9 +927,9 @@ void Minecraft::tickInput() {
|
|||||||
}
|
}
|
||||||
void Minecraft::handleMouseDown(int button, bool down) {
|
void Minecraft::handleMouseDown(int button, bool down) {
|
||||||
#ifndef STANDALONE_SERVER
|
#ifndef STANDALONE_SERVER
|
||||||
#ifndef RPI
|
#ifdef __ANDROID__
|
||||||
if(player->isUsingItem()) {
|
if(player->isUsingItem()) {
|
||||||
if(!down && !Keyboard::isKeyDown(options.keyUse.key)) {
|
if(!down) {
|
||||||
gameMode->releaseUsingItem(player);
|
gameMode->releaseUsingItem(player);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user