Fix oreientation bug causing levers not being able to place.

This commit is contained in:
LexManos 2012-08-10 02:08:26 -07:00
parent 44e6fd90c9
commit d14b1b4e1f
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ public enum Orientation
public static Orientation getOrientation(int id)
{
if (Orientation.values().length < id)
if (id < Orientation.values().length)
{
return Orientation.values()[id];
}