Corrected typo (verticies to vertices)

This commit is contained in:
honeyhoney
2017-11-12 17:32:04 +00:00
parent c4ed3619b5
commit 16b0cff40f

View File

@@ -119,21 +119,21 @@ public abstract class TileObjectMixin implements TileObject
// models are orientated north (1024) and there are 2048 angles total // models are orientated north (1024) and there are 2048 angles total
orientation = (orientation + 1024) % 2048; orientation = (orientation + 1024) % 2048;
List<Vertex> verticies = model.getVertices(); List<Vertex> vertices = model.getVertices();
if (orientation != 0) if (orientation != 0)
{ {
// rotate verticies // rotate vertices
for (int i = 0; i < verticies.size(); ++i) for (int i = 0; i < vertices.size(); ++i)
{ {
Vertex v = verticies.get(i); Vertex v = vertices.get(i);
verticies.set(i, v.rotate(orientation)); vertices.set(i, v.rotate(orientation));
} }
} }
List<Point> points = new ArrayList<Point>(); List<Point> points = new ArrayList<Point>();
for (Vertex v : verticies) for (Vertex v : vertices)
{ {
// Compute canvas location of vertex // Compute canvas location of vertex
Point p = Perspective.worldToCanvas(client, Point p = Perspective.worldToCanvas(client,