Improved logs on CC attach exception report

This commit is contained in:
Unknown 2018-04-29 17:34:06 +02:00 committed by unknown
parent 96ec8dc548
commit a5ab5ac887

View file

@ -332,7 +332,10 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
}
} catch (Exception exception) {
exception.printStackTrace();
WarpDrive.logger.error("Failed to mount ComputerCraft scripts for " + peripheralName);
WarpDrive.logger.error(String.format("Failed to mount ComputerCraft scripts for %s @ %s (%d %d %d)",
peripheralName,
worldObj == null ? "~NULL~" : worldObj.provider.getDimensionName(),
xCoord, yCoord, zCoord));
}
}
}