Closed Nerdpie closed 5 years ago
Will look at this at some point, not sure if the naming is wrong or the methods.
Upon closer inspection, the configuration check makes sense.
toRelative
method is used to convert the BlockPos
for output, so it can return the input if the player is supposed to see the absolute position.toAbsolute
method is used to convert the input BlockPos
, so it only needs to sum the vectors if input should be relative coordinates.The naming may be a bit confusing, but it should function just fine. Sorry for the false alarm!
https://github.com/thraaawn/OCXNetDriver/blob/179b1a3590d0a8f58ff524c0a972d6d7a35b7dce/src/main/java/org/dave/ocxnetdriver/driver/controller/EnvironmentXnetController.java#L57-L65
I'm currently working on adding similar behavior into Plethora based on your code, and I noticed that you have the same check in
toRelative
andtoAbsolute
. Just thought I'd mention it!