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

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];
}