Height fixes

This commit is contained in:
Daniel Mills
2020-10-25 12:30:05 -04:00
parent 49b494ed02
commit 9f3e5fea38
3 changed files with 18 additions and 2 deletions

View File

@@ -87,7 +87,18 @@ public class AtomicSliver
{
return null;
}
FastBlockData b = block[h < 256 ? h : 256];
if(h > 255)
{
h = 255;
}
if(h < 0)
{
h = 0;
}
FastBlockData b = block[h];
last = M.ms();
if(b == null)