Geitenijs / KeepChunks

The most powerful chunk loading plugin!
Other
42 stars 9 forks source link

keepregion only works if second coordinates are greater or equal than first #9

Closed EmbersArc closed 5 years ago

EmbersArc commented 5 years ago

Describe the bug The command keepregion only works if second coordinates are greater or equal than first

To Reproduce Steps to reproduce the behavior:

  1. Execute command '/keepregion coords world' where x2 < x1 and/or z2 < z1.
  2. Nothing happens, no error is shown.

Expected behavior A region is kept no matter the relative size of the coordinates, or an error is shown.

Environment (please complete the following information):

Geitenijs commented 5 years ago

I'm aware of this issue, however I don't have a fix ready. A PR would be very helpful :)

EmbersArc commented 5 years ago

https://github.com/Geitenijs/KeepChunks/pull/12

I've never written Java before and haven't tested it. So check before merging ;)

Geitenijs commented 5 years ago

Should be fixed in 1.5.13. Will be released later today.

Edit: v1.5.13 is released. Can you check it please?

EmbersArc commented 5 years ago

Works! Thank you.