MTVehicles / MinetopiaVehicles

A realistic vehicle plugin for your Minecraft server!
https://mtvehicles.nl
MIT License
92 stars 29 forks source link

it should remove the loop or something XD #221

Closed lastsurvivors closed 11 months ago

lastsurvivors commented 11 months ago

https://github.com/GamerJoep/MinetopiaVehicles/blame/5365deb7ad1848b9a05f2634213e62f686543c2d/src/main/java/nl/mtvehicles/core/listeners/VehiclePlaceListener.java#L51C27-L51C27

GomorrhaDev commented 11 months ago

https://github.com/GamerJoep/MinetopiaVehicles/blame/5365deb7ad1848b9a05f2634213e62f686543c2d/src/main/java/nl/mtvehicles/core/listeners/VehiclePlaceListener.java#L51C27-L51C27

What is the Problem?

lastsurvivors commented 11 months ago

it's y+1 spawnLoc.getY() + number one in the loop, maybe should be y+ i

GomorrhaDev commented 11 months ago

it's y+1 spawnLoc.getY() + number one in the loop, maybe should be y+ i

No, the code you mean should only check the location above the clicked block and save it, so spawnLoc.getY() + 1 is correct.

lastsurvivors commented 11 months ago

okay i got it