Fix oreientation bug causing levers not being able to place.
This commit is contained in:
parent
44e6fd90c9
commit
d14b1b4e1f
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public enum Orientation
|
||||||
|
|
||||||
public static Orientation getOrientation(int id)
|
public static Orientation getOrientation(int id)
|
||||||
{
|
{
|
||||||
if (Orientation.values().length < id)
|
if (id < Orientation.values().length)
|
||||||
{
|
{
|
||||||
return Orientation.values()[id];
|
return Orientation.values()[id];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue