forked from Mirrorlandia_minetest/minetest
Fix on_rightclick() being called directly after placing node
fixes https://github.com/minetest/minetest_game/issues/537
This commit is contained in:
parent
380e1504eb
commit
127b9aed09
@ -3673,11 +3673,11 @@ void Game::handlePointingAtNode(GameRunData *runData,
|
|||||||
} else {
|
} else {
|
||||||
soundmaker->m_player_rightpunch_sound =
|
soundmaker->m_player_rightpunch_sound =
|
||||||
SimpleSoundSpec();
|
SimpleSoundSpec();
|
||||||
}
|
|
||||||
|
|
||||||
if (playeritem_def.node_placement_prediction == "" ||
|
if (playeritem_def.node_placement_prediction == "" ||
|
||||||
nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable)
|
nodedef_manager->get(map.getNodeNoEx(nodepos)).rightclickable)
|
||||||
client->interact(3, pointed); // Report to server
|
client->interact(3, pointed); // Report to server
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4422,4 +4422,3 @@ void the_game(bool *kill,
|
|||||||
errorstream << "ModError: " << error_message << std::endl;
|
errorstream << "ModError: " << error_message << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user