kangarko / Foundation

Foundation™ helps you create highly customized Minecraft plugins (based on Spigot/Paper API) that support multiple MC versions.
https://mineacademy.org
305 stars 63 forks source link

Update BlockUtil.java #276

Closed EgehanKilicarslan closed 4 months ago

kangarko commented 4 months ago

Can't this be simplified by calling the add(0.5, 0.5, 0.5) instead?

EgehanKilicarslan commented 4 months ago

I tried but it breaks the code

broken1arrow commented 4 months ago

Can't this be simplified by calling the add(0.5, 0.5, 0.5) instead?

if you use add, it will only add on current location, for example if value is 158.877 and you add 0.5 it will then not be in center.

kangarko commented 4 months ago

Yeah agreed, the method is poorly named. I know what the op wants to achieve but I don't think we need this addition, use it on your own side for now.