arnis icon indicating copy to clipboard operation
arnis copied to clipboard

Choose where you spawn on the map

Open Geotree12 opened this issue 8 months ago • 2 comments

First time contributing to a code base so sorry if it's not too good right now, had to make a couple helper functions from osm_parser.rs public to translate from lng/lat coordinates to minecraft coordinates as well.

New parameter is added --spawn-point="longitude,latitude"

when this parameter is not specified the spawn point defaults to 0,0

Geotree12 avatar Apr 09 '25 03:04 Geotree12

Looks good, but it doesn't pass the checks because of bad formatting, you should execute cargo fmt and push another commit to fix this

Oleg4260 avatar Apr 09 '25 17:04 Oleg4260

got it all fixed up now, clippy was a bit cranky but it should all be good.

Geotree12 avatar Apr 09 '25 21:04 Geotree12

I'll wait for https://github.com/louis-e/arnis/pull/409 to be merged so that we can also include a GUI option for it / set the spawn point automatically!

louis-e avatar Apr 26 '25 14:04 louis-e

I reworked your code into the current code base with https://github.com/louis-e/arnis/pull/461 since a lot has changed in the architecture. So thanks for your contribution :)

louis-e avatar May 24 '25 00:05 louis-e