Fix off by one in forest drum meta to state

This commit is contained in:
Vincent Lee committed 2016-01-12 13:58:19 -06:00
1 parent f799f7bc32
commit 19e387f359
1 file changed
+1 -1
@@ -69,7 +69,7 @@ public class BlockForestDrum extends BlockMod implements IManaTrigger, ILexicona
@Override
public IBlockState getStateFromMeta(int meta) {
if (meta > DrumVariant.values().length) {
if (meta >= DrumVariant.values().length) {
meta = 0;
}
return getDefaultState().withProperty(BotaniaStateProps.DRUM_VARIANT, DrumVariant.values()[meta]);