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