Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Commit

Permalink
Fix on_rightclick() being called directly after placing node
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Oct 24, 2015
1 parent 380e150 commit 127b9ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down Expand Up @@ -4422,4 +4422,3 @@ void the_game(bool *kill,
errorstream << "ModError: " << error_message << std::endl;
}
}

0 comments on commit 127b9ae

Please sign in to comment.