tterrag1098 / BON2

A rewrite for Immibis's bearded-octo-nemesis for ForgeGradle
GNU Lesser General Public License v3.0
182 stars 50 forks source link

Fix initial directory being one folder level too high #12

Closed tterrag1098 closed 9 years ago

tterrag1098 commented 9 years ago

I made a small derp when I initially made this feature. This new way should always get the current dir, or if that's not possible it will search upwards until it finds a directory.

Parker8283 commented 9 years ago

I figured you wanted it that way :P

If I'm not mistaken, Paths.get("") should always return a dir, as it returns the directory where the file was run. I could be wrong, though...

tterrag1098 commented 9 years ago

99% of the time, yeah. But I do remember it crashing for some reason while developing the old way. This new way should be 100% safe. On Mar 28, 2015 4:58 PM, "Parker Young" notifications@github.com wrote:

I figured you wanted it that way :P

If I'm not mistaken, Paths.get("") should always return a dir, as it returns the directory where the file was run. I could be wrong, though...

— Reply to this email directly or view it on GitHub https://github.com/Parker8283/BON2/pull/12#issuecomment-87301751.

Parker8283 commented 9 years ago

Eh, alrighty then.