mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +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:
1 parent
b1d25ec35c
commit
21a6a19caf
1 file changed
+6
-2
@@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user