mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +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))
|
if(B.isLit(data))
|
||||||
{
|
{
|
||||||
block.setType(Material.AIR, false);
|
try {
|
||||||
block.setBlockData(data, true);
|
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