9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 10:39:07 +00:00

Prevent stack-trace spam when placing tile entities where none exist

Improper fix but it suppresses the harmless error.
This commit is contained in:
CocoTheOwner
2021-02-24 18:26:49 +01:00
parent b1d25ec35c
commit 21a6a19caf

View File

@@ -193,8 +193,12 @@ public interface Engine extends DataProvider, Fallible, GeneratorAccess, LootPro
if(B.isLit(data))
{
block.setType(Material.AIR, false);
block.setBlockData(data, true);
try {
block.setType(Material.AIR, false);
block.setBlockData(data, true);
} catch (Exception e){
// Issue when adding block data. Suppress massive warnings and stack-traces to console.
}
}
}