From 8088e4a54a2ba6203fa1c5429db4c62d3d357c5b Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sat, 23 Nov 2013 09:17:13 +1100 Subject: [PATCH] Clamped the hive getIcon to prevent crashes for people with ID conflicts --- common/biomesoplenty/blocks/BlockHive.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/biomesoplenty/blocks/BlockHive.java b/common/biomesoplenty/blocks/BlockHive.java index 1ed7fc629..6c6608dd2 100644 --- a/common/biomesoplenty/blocks/BlockHive.java +++ b/common/biomesoplenty/blocks/BlockHive.java @@ -51,6 +51,9 @@ public class BlockHive extends Block @Override public Icon getIcon(int side, int meta) { + if (meta < 0 || meta >= hiveTypes.length) { + meta = 0; + } return textures[meta]; }