mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-11 10:16:34 +00:00
Fix crash issues
This commit is contained in:
@@ -48,7 +48,12 @@ public class AtomicSliver
|
||||
|
||||
public Material getType(int h)
|
||||
{
|
||||
return get(h).getMaterial();
|
||||
return getTypeSafe(h);
|
||||
}
|
||||
|
||||
public Material getTypeSafe(int h)
|
||||
{
|
||||
return get(h > 255 ? 255 : h < 0 ? 0 : h).getMaterial();
|
||||
}
|
||||
|
||||
public KList<Byte> getUpdatables()
|
||||
|
||||
Reference in New Issue
Block a user