Fix wrong length check (#68)

This commit is contained in:
NotAPenguin authored and GitHub committed 2024-04-15 17:47:49 +01:00
1 parent ecf0d7165c
commit 466110d461
1 file changed
+1 -1
@@ -97,7 +97,7 @@ public class BlockAlveary extends BlockStructure {
/* TILE ENTITY CREATION */
@Override
public TileEntity createTileEntity(World world, int metadata) {
if (metadata < 0 || metadata > Type.VALUES.length) {
if (metadata < 0 || metadata >= Type.VALUES.length) {
return null;
}