mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-26 18:49:06 +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:
@@ -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