I apologize if you guys already know about this but I was following along with the wiki tutorial on Facet Production for 1.x and hit a compiler error in the SurfaceProvider class. The wiki states the following code snippet:
I changed my code to the following which seems correct:
Apparently Rect2i used to implement Iterable<Vector2i> but doesn't any longer. Not a big deal but beginners may stumble.
The wiki page I'm referring to is at https://github.com/Terasology/TutorialWorldGeneration/wiki/1.x-Facet Production.
Code:
// loop through every position on our 2d array
Rect2i processRegion = facet.getWorldRegion();
for(Vector2i position : processRegion) {
facet.setWorld(position, 10f);
}
Code:
for(BaseVector2i position : processRegion.contents()){
facet.setWorld(position, 10f);
}
The wiki page I'm referring to is at https://github.com/Terasology/TutorialWorldGeneration/wiki/1.x-Facet Production.