• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

EarthMethods.getNearbyEarthBlock

Status
Not open for further replies.

Finn_Bueno_

Staff member
Plugin Developer
Verified Member
Hey guys, programming suggestion!

I suggest that "EarthMethods.getNearbyEarthBlock" does not select the block directly underneath you. If this is used 2 times rapidly, the 2 blocks underneath you will be used as a source, leaving you in a 2 meter deep hole. That's it, it's just an annoying this that I hope you can fix soon!

- Finn
 

Preston M

Verified Member
Ez fix, just make an if statement that checks to make sure the selected block isnt below you, you should then check to see if there is any other then what is below you, if there is then you can use recursion to reselect the block.
 

Finn_Bueno_

Staff member
Plugin Developer
Verified Member
Ez fix, just make an if statement that checks to make sure the selected block isnt below you, you should then check to see if there is any other then what is below you, if there is then you can use recursion to reselect the block.
When you use this method, it automatically selects the block underneath you. I'm just saying it would work better.
 
Status
Not open for further replies.
Top