mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix off by one in forest drum meta to state
This commit is contained in:
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]);
|
||||
|
||||
Reference in new issue
Block a user