Fix for a crash with slabs.
This commit is contained in:
parent
1f90461b3e
commit
b2d95e95b1
|
@ -245,6 +245,10 @@ public class BlockBOPSlab extends BlockSlab
|
||||||
|
|
||||||
private static int getTypeFromMeta(int meta)
|
private static int getTypeFromMeta(int meta)
|
||||||
{
|
{
|
||||||
return meta & 7;
|
meta = meta & 7;
|
||||||
|
if (meta < rockTypes.length)
|
||||||
|
meta = 0;
|
||||||
|
|
||||||
|
return meta;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue