From d14b1b4e1f01f8a4027eafbd7083b6f1b78f3450 Mon Sep 17 00:00:00 2001 From: LexManos Date: Fri, 10 Aug 2012 02:08:26 -0700 Subject: [PATCH] Fix oreientation bug causing levers not being able to place. --- common/net/minecraftforge/common/Orientation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/net/minecraftforge/common/Orientation.java b/common/net/minecraftforge/common/Orientation.java index 171668660..123deb692 100644 --- a/common/net/minecraftforge/common/Orientation.java +++ b/common/net/minecraftforge/common/Orientation.java @@ -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]; }