9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 11:09:06 +00:00

Identified leak

This commit is contained in:
Daniel Mills
2020-12-28 07:56:18 -05:00
parent 89da5fe08a
commit a9410d92a2
6 changed files with 43 additions and 28 deletions

View File

@@ -118,9 +118,19 @@ public class Section {
* @return The block state data of this block.
*/
public CompoundTag getBlockStateAt(int blockX, int blockY, int blockZ) {
int index = getBlockIndex(blockX, blockY, blockZ);
int paletteIndex = getPaletteIndex(index);
return palette.get(paletteIndex);
try
{
int index = getBlockIndex(blockX, blockY, blockZ);
int paletteIndex = getPaletteIndex(index);
return palette.get(paletteIndex);
}
catch(Throwable e)
{
}
return null;
}
/**