Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Faulty Terrain Scan


clowcadia
 Share

Recommended Posts

If you expect the list to always contain elements, step through the code where you populate the list using your debugger, to find out why it isn't being filled like you expect.

 

If you just want to prevent a crash for cases where the list has no elements, use ArrayList#isEmpty() to check.

  • Like 1
Link to comment
Share on other sites

ok back to original probelm

i am testing my terrain by putting glass blocks in the sky\(pos.up(20) that should simulate the recorder block positions of a 15 by 15 area

https://github.com/Clowcadia/MinecraftForge/blob/master/1.11/NPCTesting/src/main/java/com/clowcadia/test/utils/TerrainScan.java

any idea where i am going wrong with the spaces or maybe my whole code is poop

bad terrain scan.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.