Right-clicking on a non-obstacle block (such as a plant) used to do nothing. I originally suspected it was an issue in hit testing, but turns out to be an easy fix: if the hit target is not an obstacle, then create the new block on the clicked block. This matches the commonly expected behavior e.g. in Minecraft.
Before:
After right-click, without this pull request: nothing happens
Right-clicking on a non-obstacle block (such as a plant) used to do nothing. I originally suspected it was an issue in hit testing, but turns out to be an easy fix: if the hit target is not an obstacle, then create the new block on the clicked block. This matches the commonly expected behavior e.g. in Minecraft.
Before:
After right-click, without this pull request: nothing happens
After right-click, with this pull request: